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-19 17:32:12 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-11-19 17:32:12 +0300
commit17013ca4eeded084cc12caa256e5f72c81e533fd (patch)
treeff2593a09c0565238b87093aea65670f86448d28 /source/blender/python/intern/bpy_operator_wrap.c
parent2577bfddfdb8de24ccc807db8ed1c25465b407b9 (diff)
added 'hidden' option for python defined rna props, means py operators can use hidden properties so the popup wont show
improved error message when bad args are given to propertyRNA funcs
Diffstat (limited to 'source/blender/python/intern/bpy_operator_wrap.c')
-rw-r--r--source/blender/python/intern/bpy_operator_wrap.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/python/intern/bpy_operator_wrap.c b/source/blender/python/intern/bpy_operator_wrap.c
index 9b4f98aca8e..5f3ddf02d7b 100644
--- a/source/blender/python/intern/bpy_operator_wrap.c
+++ b/source/blender/python/intern/bpy_operator_wrap.c
@@ -308,9 +308,17 @@ void PYTHON_OT_wrapper(wmOperatorType *ot, void *userdata)
*/
item= ((PyTypeObject*)py_class)->tp_dict;
if(item) {
+ /* only call this so pyrna_deferred_register_props gives a useful error
+ * WM_operatortype_append_ptr will call RNA_def_struct_identifier
+ * later */
+ RNA_def_struct_identifier(ot->srna, ot->idname);
+
+
if(pyrna_deferred_register_props(ot->srna, item)!=0) {
+ /* failed to register operator props */
PyErr_Print();
PyErr_Clear();
+
}
}
else {