annoyance with python api, Blender.Library.Datablocks should always return an empty list, rather then None when there is no datablocks.
This commit is contained in:
@@ -279,10 +279,11 @@ static PyObject *M_Library_Datablocks( PyObject * self, PyObject * value )
|
||||
counter++;
|
||||
}
|
||||
BLI_linklist_free( names, free ); /* free linklist *and* each node's data */
|
||||
return list;
|
||||
} else {
|
||||
list = PyList_New( 0 );
|
||||
}
|
||||
|
||||
Py_RETURN_NONE;
|
||||
return list;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user