diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-02-17 09:56:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-02-17 09:56:24 +0300 |
commit | 73df566b4ae0ddcd483ea3f41e3f57f60ef44d8a (patch) | |
tree | 0d18bf93407b375ba221ac396b20cfa4b7b9a650 | |
parent | c6a0df59e13c5ae4c46584dc0045f3d314fa18b1 (diff) |
error case not being handled when calling python classes from RNA
-rw-r--r-- | source/blender/python/intern/bpy_rna.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/intern/bpy_rna.c b/source/blender/python/intern/bpy_rna.c index da0738375a0..d1bf1192708 100644 --- a/source/blender/python/intern/bpy_rna.c +++ b/source/blender/python/intern/bpy_rna.c @@ -5484,7 +5484,7 @@ static int bpy_class_call(bContext *C, PointerRNA *ptr, FunctionRNA *func, Param } } - if (is_static || py_class_instance) { /* Initializing the class worked, now run its invoke function */ + if (err != -1 && (is_static || py_class_instance)) { /* Initializing the class worked, now run its invoke function */ PyObject *item= PyObject_GetAttrString(py_class, RNA_function_identifier(func)); // flag= RNA_function_flag(func); |