Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-12-03 20:47:38 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-12-03 20:47:38 +0400
commita4e6da35806f40d9815732516c9102fe9e7e1ecb (patch)
tree7fce08720b5e20a84b6be39bbe33370414f2d972
parent81a762e79f8391942026f8c8614fe5c364b85168 (diff)
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.
-rw-r--r--source/blender/editors/space_text/text_ops.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/space_text/text_ops.c b/source/blender/editors/space_text/text_ops.c
index cd6d8719544..5b7f92739ed 100644
--- a/source/blender/editors/space_text/text_ops.c
+++ b/source/blender/editors/space_text/text_ops.c
@@ -615,6 +615,8 @@ static int text_run_script(bContext *C, ReportList *reports)
}
BKE_report(reports, RPT_ERROR, "Python script fail, look in the console for now...");
+
+ return OPERATOR_FINISHED;
}
#else
(void)C;