Blender Git Loki
Git Commits -> Revision e8495d1
Revision e8495d1 by Campbell Barton (master) September 24, 2006, 08:30 (GMT) |
Extra generic errors for Scene, Groups and Metaballs to raise errors when trying to do anything with a python objects thats had its data removed in Blender. Added to existing scn.objects scn.objects.active (get/set the active object for the scene) scn.objects.selected - an iterator that only uses selected objects scn.objects.context - an iterator on objects in the user context (visible in the current 3d views layer and selected) These are the same type as scn.objects but .add() .remove() .new() .active etc raise errors. so scn.objects.selected.add() will raise an error. Made nested loops possible with scn.objects, metaball.elements and ob.modifiers, by initializing the iter value as NULL and creating copys of the pyobject when _getIter() is called if ->iter is not NULL. This is how pythons xrange() works. |
Commit Details:
Full Hash: e8495d1fdd7623cbd42cac1b30406dc6dbc0ee06
SVN Revision: 8529
Parent Commit: e136fe0
Lines Changed: +426, -233
7 Modified Paths:
/source/blender/python/api2_2x/Group.c (+82, -72) (Diff)
/source/blender/python/api2_2x/Metaball.c (+18, -6) (Diff)
/source/blender/python/api2_2x/Modifier.c (+26, -24) (Diff)
/source/blender/python/api2_2x/Modifier.h (+1, -1) (Diff)
/source/blender/python/api2_2x/Object.c (+1, -1) (Diff)
/source/blender/python/api2_2x/Scene.c (+297, -129) (Diff)
/source/blender/python/api2_2x/Scene.h (+1, -0) (Diff)
/source/blender/python/api2_2x/Metaball.c (+18, -6) (Diff)
/source/blender/python/api2_2x/Modifier.c (+26, -24) (Diff)
/source/blender/python/api2_2x/Modifier.h (+1, -1) (Diff)
/source/blender/python/api2_2x/Object.c (+1, -1) (Diff)
/source/blender/python/api2_2x/Scene.c (+297, -129) (Diff)
/source/blender/python/api2_2x/Scene.h (+1, -0) (Diff)