[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [15069] trunk/blender/source/blender/ python/api2_2x/Draw.c: bugfix for own error, introduced when running scripts were saved with the blend file.

Campbell Barton ideasman42 at gmail.com
Sat May 31 14:12:04 CEST 2008


Revision: 15069
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=15069
Author:   campbellbarton
Date:     2008-05-31 14:12:03 +0200 (Sat, 31 May 2008)

Log Message:
-----------
bugfix for own error, introduced when running scripts were saved with the blend file.
a script error with a script that has an interface would not stop the interface from running again immediately, causing an annoying 
error message loop.

Modified Paths:
--------------
    trunk/blender/source/blender/python/api2_2x/Draw.c

Modified: trunk/blender/source/blender/python/api2_2x/Draw.c
===================================================================
--- trunk/blender/source/blender/python/api2_2x/Draw.c	2008-05-31 11:11:51 UTC (rev 15068)
+++ trunk/blender/source/blender/python/api2_2x/Draw.c	2008-05-31 12:12:03 UTC (rev 15069)
@@ -613,6 +613,8 @@
 		PyErr_Print(  );
 		script->flags = 0;	/* mark script struct for deletion */
 		SCRIPT_SET_NULL(script);
+		script->scriptname[0] = '\0';
+		script->scriptarg[0] = '\0';
 		error_pyscript();
 		scrarea_queue_redraw( sc->area );
 	}





More information about the Bf-blender-cvs mailing list