diff options
author | Campbell Barton <ideasman42@gmail.com> | 2006-11-03 02:05:10 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2006-11-03 02:05:10 +0300 |
commit | 4545da35100eb8e5ff625bfb2d8b6c767f62b0d8 (patch) | |
tree | 7b62afa7f50329945853fd9b1d0264946bc724a1 /source/blender/python/api2_2x/Group.c | |
parent | 5ee546f0531cf6b04b5cbae3b761193565f23869 (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-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; } |