From 73df566b4ae0ddcd483ea3f41e3f57f60ef44d8a Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 17 Feb 2011 06:56:24 +0000 Subject: [PATCH] error case not being handled when calling python classes from RNA --- source/blender/python/intern/bpy_rna.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);