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/blenkernel/BKE_group.h
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/blenkernel/BKE_group.h')
-rw-r--r--source/blender/blenkernel/BKE_group.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/BKE_group.h b/source/blender/blenkernel/BKE_group.h
index 9038422795d..1c301bb255c 100644
--- a/source/blender/blenkernel/BKE_group.h
+++ b/source/blender/blenkernel/BKE_group.h
@@ -45,7 +45,7 @@ void unlink_group(struct Group *group);
struct Group *add_group(char *name);
void add_to_group(struct Group *group, struct Object *ob);
void rem_from_group(struct Group *group, struct Object *ob);
-struct Group *find_group(struct Object *ob);
+struct Group *find_group(struct Object *ob, struct Group *group);
int object_in_group(struct Object *ob, struct Group *group);
void group_tag_recalc(struct Group *group);