forked from bartvdbraak/blender
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:
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 );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user