forked from bartvdbraak/blender
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:
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user