Fix #33398: Missed undo push when script execution failed
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 3 Dec 2012 16:47:38 +0000 (16:47 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 3 Dec 2012 16:47:38 +0000 (16:47 +0000)
commita4e6da35806f40d9815732516c9102fe9e7e1ecb
tree7fce08720b5e20a84b6be39bbe33370414f2d972
parent81a762e79f8391942026f8c8614fe5c364b85168
Fix #33398: Missed undo push when script execution failed

Undo push was missed in cases when script failed to run with some error
when using Run Script in text editor. As far as i can see it makes sense
to skip undo push here only in cases live editing is enabled.

Otherwise it's indeed annoying to return to previous scene state when
debugging the script.
source/blender/editors/space_text/text_ops.c