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>2008-01-19 18:13:42 +0300
committerCampbell Barton <ideasman42@gmail.com>2008-01-19 18:13:42 +0300
commit7b6c88473c02d97485970390086395b515be653e (patch)
treecc3d0ac9f256ac8a46598a2b9ac64ef7ad1c20c3 /source/blender/python/api2_2x/Group.c
parentc8841a7f2f0e885335295b3cda34097e117d0edb (diff)
find_group would only return the first group, this let to the assumption that an object was only in 1 group, made it easy to loop through all groups an object is in.
group = NULL; while( (group = find_group(base->object, group)) ) { ... }
Diffstat (limited to 'source/blender/python/api2_2x/Group.c')
-rw-r--r--source/blender/python/api2_2x/Group.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Group.c b/source/blender/python/api2_2x/Group.c
index 26e5edd0733..b4819a425f3 100644
--- a/source/blender/python/api2_2x/Group.c
+++ b/source/blender/python/api2_2x/Group.c
@@ -697,7 +697,7 @@ static PyObject *GroupObSeq_unlink( BPy_GroupObSeq * self, BPy_Object *value )
rem_from_group(self->bpygroup->group, blen_ob);
- if(find_group(blen_ob)==NULL) {
+ if(find_group(blen_ob, NULL)==NULL) {
blen_ob->flag &= ~OB_FROMGROUP;
base= object_in_scene(blen_ob, G.scene);