Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/python/api2_2x/Group.c')
-rwxr-xr-xsource/blender/python/api2_2x/Group.c7
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;
}