forked from bartvdbraak/blender
Fixed mistake where BLI_countlist(&(lb)) should be BLI_countlist(lb)
This commit is contained in:
parent
a85d160a3e
commit
0caa0ddb82
@ -3201,7 +3201,6 @@ static PyObject *Object_getDupliObjects ( BPy_Object * self )
|
||||
ListBase *lb;
|
||||
int index=0;
|
||||
|
||||
|
||||
if(ob->transflag & OB_DUPLI) {
|
||||
/* before make duplis, update particle for current frame */
|
||||
if(ob->transflag & OB_DUPLIVERTS) {
|
||||
@ -3212,7 +3211,7 @@ static PyObject *Object_getDupliObjects ( BPy_Object * self )
|
||||
}
|
||||
if(ob->type!=OB_MBALL) {
|
||||
lb= object_duplilist(sce, ob);
|
||||
dupli_objects_list= PyList_New( BLI_countlist(&(lb))-1 );
|
||||
dupli_objects_list= PyList_New( BLI_countlist(lb)-1 );
|
||||
if( !dupli_objects_list )
|
||||
return EXPP_ReturnPyObjError( PyExc_RuntimeError,
|
||||
"PyList_New() failed" );
|
||||
|
Loading…
Reference in New Issue
Block a user