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.
This commit is contained in:
Campbell Barton 2008-05-31 12:12:03 +00:00
parent 5c1acc5ced
commit 57270125d8

@ -613,6 +613,8 @@ static void exit_pydraw( SpaceScript * sc, short err )
PyErr_Print( ); PyErr_Print( );
script->flags = 0; /* mark script struct for deletion */ script->flags = 0; /* mark script struct for deletion */
SCRIPT_SET_NULL(script); SCRIPT_SET_NULL(script);
script->scriptname[0] = '\0';
script->scriptarg[0] = '\0';
error_pyscript(); error_pyscript();
scrarea_queue_redraw( sc->area ); scrarea_queue_redraw( sc->area );
} }