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:
2008-04-07 10:12:21 +00:00
parent 391191a7e3
commit 66e74e6057

View File

@@ -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;
}
/**