[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [24781] trunk/blender/source/blender/ editors/space_script/script_edit.c: Adding undo flag to the python run flag operator.

Martin Poirier theeth at yahoo.com
Sun Nov 22 21:26:55 CET 2009


Revision: 24781
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=24781
Author:   theeth
Date:     2009-11-22 21:26:54 +0100 (Sun, 22 Nov 2009)

Log Message:
-----------
Adding undo flag to the python run flag operator.

It's safer this way.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_script/script_edit.c

Modified: trunk/blender/source/blender/editors/space_script/script_edit.c
===================================================================
--- trunk/blender/source/blender/editors/space_script/script_edit.c	2009-11-22 20:24:36 UTC (rev 24780)
+++ trunk/blender/source/blender/editors/space_script/script_edit.c	2009-11-22 20:26:54 UTC (rev 24781)
@@ -81,6 +81,7 @@
 	ot->name= "Run python file";
 	ot->description= "Run Python file.";
 	ot->idname= "SCRIPT_OT_python_file_run";
+	ot->flag = OPTYPE_UNDO;
 
 	/* api callbacks */
 	ot->exec= run_pyfile_exec;





More information about the Bf-blender-cvs mailing list