ack- need to get the hang of usercounts better- it seems they need to be initialized as 1 for groups, just like images.

This commit is contained in:
Campbell Barton 2006-11-02 23:05:10 +00:00
parent 5ee546f053
commit 4545da3510

@ -107,9 +107,7 @@ static PyObject *BPy_Group_copy( BPy_Group * self )
rename_id( &bl_group->id, self->group->id.name + 2 );
/* user count be incremented in Group_CreatePyObject */
bl_group->id.us = 0;
bl_group->id.us = 1;
/* Now add the objects to the group */
group_ob= self->group->gobject.first;
@ -392,8 +390,7 @@ PyObject *M_Group_New( PyObject * self, PyObject * args )
rename_id( &bl_group->id, buf );
}
/* user count be incremented in Group_CreatePyObject */
bl_group->id.us = 0;
bl_group->id.us = 1;
return ( PyObject * ) py_group;
}