diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-03-23 17:39:37 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-03-23 17:39:37 +0300 |
commit | 8c873312cf340848796b8de784bce8d7883c8eda (patch) | |
tree | 5fead3a97e40e55f059b394de0dda69ad8b274e6 /source/blender/python | |
parent | e04b27ca423fa05ca12b873abc73de56427e4327 (diff) |
Python:
* Fix for not printing syntax error when running script
from the text editor, and crash on exit. Campbell, please
check if this is OK?
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/intern/bpy_interface.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/python/intern/bpy_interface.c b/source/blender/python/intern/bpy_interface.c index 7093916310e..94ec8deebe4 100644 --- a/source/blender/python/intern/bpy_interface.c +++ b/source/blender/python/intern/bpy_interface.c @@ -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; } } |