mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-26 08:26:50 +00:00
Fix DumpObject to work with lists
This commit is contained in:
@@ -649,7 +649,18 @@ struct TypeConversion<rdcfixedarray<U, N>, false>
|
||||
|
||||
for(size_t i = 0; i < N; i++)
|
||||
{
|
||||
int ret = TypeConversion<U>::ConvertFromPy(PySequence_GetItem(in, i), out[i]);
|
||||
PyObject *elem = PySequence_GetItem(in, i);
|
||||
|
||||
if(!elem)
|
||||
{
|
||||
if(failIdx)
|
||||
*failIdx = (int)i;
|
||||
return SWIG_TypeError;
|
||||
}
|
||||
|
||||
int ret = TypeConversion<U>::ConvertFromPy(elem, out[i]);
|
||||
|
||||
Py_XDECREF(elem);
|
||||
|
||||
if(!SWIG_IsOK(ret))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user