diff options
Diffstat (limited to 'source/blender/python/api2_2x/Group.c')
-rwxr-xr-x | source/blender/python/api2_2x/Group.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/source/blender/python/api2_2x/Group.c b/source/blender/python/api2_2x/Group.c index 328b438a6f4..2512d573661 100755 --- a/source/blender/python/api2_2x/Group.c +++ b/source/blender/python/api2_2x/Group.c @@ -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; } |