many operators uses Bases, for the python to set operators context python too needs...
authorCampbell Barton <ideasman42@gmail.com>
Mon, 2 Nov 2009 11:14:22 +0000 (11:14 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 2 Nov 2009 11:14:22 +0000 (11:14 +0000)
commitda1765765baf3bc84059548a43beec0c3a1c2d41
tree1eaef63f7ce63144a990d97285675bbf417ad4eb
parentda6081f26692833e980706bee094933dadda5fa5
many operators uses Bases, for the python to set operators context python too needs to be able to access bases.
- added scene.bases (like scene.objects)
- renamed group create operator.

Example
 scene = bpy.data.scenes[0]
 C = {}
 C["scene"] = scene
 C["selected_editable_bases"] = [scene.bases[2], scene.bases[3]]

 bpy.ops.group.create(C)

Also made operator fake modules not return __call__ (reported by Stani, fixes autocomp. bug)
release/scripts/modules/bpy_ops.py
source/blender/editors/object/object_group.c
source/blender/editors/object/object_intern.h
source/blender/editors/object/object_ops.c
source/blender/makesrna/intern/rna_object.c
source/blender/makesrna/intern/rna_scene.c