diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-09-09 21:41:36 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-09-09 21:41:36 +0400 |
commit | 7bd1f9a234aa0adeecc3ec8e77eead598b5af232 (patch) | |
tree | 1828b4481186ef27b9d07548fcf8f4baf562e688 /source/blender/python/intern/bpy_operator_wrap.c | |
parent | f9367c4c4d75d4c823029e64f8c5d371e507df52 (diff) |
- bugfix, operators were getting their properties registered twice.
- operator properties are now converted into python property() class members which bypass the operator 'properties' member.
self.properties.mysetting
... can now be written as ...
self.mysetting
- fix for error reloading rigify
Diffstat (limited to 'source/blender/python/intern/bpy_operator_wrap.c')
-rw-r--r-- | source/blender/python/intern/bpy_operator_wrap.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/python/intern/bpy_operator_wrap.c b/source/blender/python/intern/bpy_operator_wrap.c index 6d16896fb16..27da839960b 100644 --- a/source/blender/python/intern/bpy_operator_wrap.c +++ b/source/blender/python/intern/bpy_operator_wrap.c @@ -45,6 +45,9 @@ static void operator_properties_init(wmOperatorType *ot) PyErr_Print(); /* failed to register operator props */ PyErr_Clear(); } + + // see bpy_types.py:Operator, May redo this some other way! + PyObject_CallMethod(py_class, "easy_getsets", NULL); } void operator_wrapper(wmOperatorType *ot, void *userdata) |