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:
authorCampbell Barton <ideasman42@gmail.com>2006-11-03 02:05:10 +0300
committerCampbell Barton <ideasman42@gmail.com>2006-11-03 02:05:10 +0300
commit4545da35100eb8e5ff625bfb2d8b6c767f62b0d8 (patch)
tree7b62afa7f50329945853fd9b1d0264946bc724a1 /source/blender/python/api2_2x/Group.c
parent5ee546f0531cf6b04b5cbae3b761193565f23869 (diff)
ack- need to get the hang of usercounts better- it seems they need to be initialized as 1 for groups, just like images.
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;
}