Blender Git Loki

Git Commits -> Revision 59ed566

Revision 59ed566 by Campbell Barton (master)
March 19, 2006, 04:45 (GMT)
Added support for group objects
grp.objects

To have an iterator assigned as well as a list. Since gp.objects is an ietartor this is expected.
grp.objects= someGroup.objects works now.

Some other small fixes made.

Made a wrapper for add_to_group() That handles the OB_FROMGROUP flag. Should be moved to group.c's add_to_group()

void add_to_group_wraper(Group *group, Object *ob) {
Base *base;
add_to_group(group, ob);

if (!(ob->flag & OB_FROMGROUP)) { /* do this to avoid a listbase lookup */
ob->flag |= OB_FROMGROUP;

base= object_in_scene(ob, G.scene);
if (base)
base->flag |= OB_FROMGROUP;
}
}

Commit Details:

Full Hash: 59ed566e86eaa7514101777910ac99fb2fdd3c2d
SVN Revision: 7092
Parent Commit: abab9fc
Lines Changed: +56, -30

1 Modified Path:

/source/blender/python/api2_2x/Group.c (+56, -30) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021