[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [52753] trunk/blender/source/blender/ editors/space_text/text_ops.c: Fix #33398: Missed undo push when script execution failed

Sergey Sharybin sergey.vfx at gmail.com
Mon Dec 3 17:47:39 CET 2012


Revision: 52753
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=52753
Author:   nazgul
Date:     2012-12-03 16:47:38 +0000 (Mon, 03 Dec 2012)
Log Message:
-----------
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.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_text/text_ops.c

Modified: trunk/blender/source/blender/editors/space_text/text_ops.c
===================================================================
--- trunk/blender/source/blender/editors/space_text/text_ops.c	2012-12-03 16:30:33 UTC (rev 52752)
+++ trunk/blender/source/blender/editors/space_text/text_ops.c	2012-12-03 16:47:38 UTC (rev 52753)
@@ -615,6 +615,8 @@
 		}
 
 		BKE_report(reports, RPT_ERROR, "Python script fail, look in the console for now...");
+
+		return OPERATOR_FINISHED;
 	}
 #else
 	(void)C;




More information about the Bf-blender-cvs mailing list