* Fix for not printing syntax error when running script
  from the text editor, and crash on exit. Campbell, please
  check if this is OK?
This commit is contained in:
2009-03-23 14:39:37 +00:00
parent e04b27ca42
commit 8c873312cf

View File

@@ -133,7 +133,9 @@ int BPY_run_python_script( bContext *C, const char *fn, struct Text *text )
MEM_freeN( buf );
if( PyErr_Occurred( ) ) {
PyErr_Print();
BPY_free_compiled_text( text );
PyGILState_Release(gilstate);
return 0;
}
}