[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [34925] trunk/blender/source/blender/ python/intern/bpy_rna.c: error case not being handled when calling python classes from RNA

Campbell Barton ideasman42 at gmail.com
Thu Feb 17 07:56:25 CET 2011


Revision: 34925
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=34925
Author:   campbellbarton
Date:     2011-02-17 06:56:24 +0000 (Thu, 17 Feb 2011)
Log Message:
-----------
error case not being handled when calling python classes from RNA

Modified Paths:
--------------
    trunk/blender/source/blender/python/intern/bpy_rna.c

Modified: trunk/blender/source/blender/python/intern/bpy_rna.c
===================================================================
--- trunk/blender/source/blender/python/intern/bpy_rna.c	2011-02-17 06:23:16 UTC (rev 34924)
+++ trunk/blender/source/blender/python/intern/bpy_rna.c	2011-02-17 06:56:24 UTC (rev 34925)
@@ -5484,7 +5484,7 @@
 		}
 	}
 
-	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);
 




More information about the Bf-blender-cvs mailing list