- OBJ importer now reads most of the test files. Had to copy BPyMesh.ngon function to OBJ import code

- added MeshEdge.fgon property, not using it yet
- fixed in bpy_rna.c to correctly read arrays returned from RNA functions
This commit is contained in:
2009-08-06 12:22:50 +00:00
parent 59abddc202
commit 01eedc5046
6 changed files with 278 additions and 61 deletions

View File

@@ -1801,6 +1801,10 @@ PyObject *pyrna_param_to_py(PointerRNA *ptr, PropertyRNA *prop, void *data)
/* resolve the array from a new pytype */
ret = PyTuple_New(len);
/* for return values, data is a pointer to an array, not first element pointer */
if (prop->flag & PROP_DYNAMIC_ARRAY)
data = *((char**)data)
switch (type) {
case PROP_BOOLEAN:
for(a=0; a<len; a++)