Blender Git Commit Log

Git Commits -> Revision bc6190f

Revision bc6190f by Campbell Barton (master)
November 11, 2009, 16:28 (GMT)
python api for collection add()/remove()

Added a group example
C = bpy.context
ob = C.active_object
bpy.data.groups[0].objects.add(ob)

- add_to_group and rem_from_group now take optional scene and base flags and deal with updating the object & base flags
- operators that add objects to groups were setting ob->recalc= OB_RECALC_OB; looks like its not needed.
- previously add() ignored python args, now add and remove are called like any other FunctionRNA from python.
- made the pyrna api use tp_getset's for collestions active/add()/remove()

Commit Details:

Full Hash: bc6190f3e370d21aff0bd9d96fd43d92382c6466
SVN Revision: 24502
Parent Commit: f243928
Lines Changed: +253, -134

11 Modified Paths:

/source/blender/blenkernel/BKE_group.h (+2, -2) (Diff)
/source/blender/blenkernel/intern/group.c (+46, -5) (Diff)
/source/blender/blenkernel/intern/object.c (+1, -1) (Diff)
/source/blender/blenloader/intern/readfile.c (+1, -1) (Diff)
/source/blender/editors/object/object_add.c (+1, -2) (Diff)
/source/blender/editors/object/object_group.c (+8, -35) (Diff)
/source/blender/makesrna/intern/rna_access.c (+22, -3) (Diff)
/source/blender/makesrna/intern/rna_group.c (+46, -6) (Diff)
/source/blender/makesrna/RNA_access.h (+3, -0) (Diff)
/source/blender/python/intern/bpy_rna.c (+120, -74) (Diff)
/source/blender/python/intern/bpy_rna.h (+3, -5) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021