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>2009-11-11 19:28:53 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-11-11 19:28:53 +0300
commitbc6190f3e370d21aff0bd9d96fd43d92382c6466 (patch)
tree94bdbadbeb908085e86fd73b447df1ec1ed05858 /source/blender/python/intern/bpy_rna.h
parentf24392805515416bdba35f531457183e67ef274c (diff)
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()
Diffstat (limited to 'source/blender/python/intern/bpy_rna.h')
-rw-r--r--source/blender/python/intern/bpy_rna.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/source/blender/python/intern/bpy_rna.h b/source/blender/python/intern/bpy_rna.h
index fe38ddb6bd9..0e40bf7258c 100644
--- a/source/blender/python/intern/bpy_rna.h
+++ b/source/blender/python/intern/bpy_rna.h
@@ -39,11 +39,9 @@ extern PyTypeObject pyrna_prop_Type;
#define BPy_PropertyRNA_CheckExact(v) (Py_TYPE(v) == &pyrna_prop_Type)
typedef struct {
- void * _a;
- void * _b;
- PyTypeObject *py_type;
-} BPy_StructFakeType;
-
+ PyObject_HEAD /* required python macro */
+ PointerRNA ptr;
+} BPy_DummyPointerRNA;
typedef struct {
PyObject_HEAD /* required python macro */