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:
authorMartin Poirier <theeth@yahoo.com>2009-11-22 23:26:54 +0300
committerMartin Poirier <theeth@yahoo.com>2009-11-22 23:26:54 +0300
commit4f21b1fcbaed6e819f7e3fd431cb01824b586260 (patch)
tree0b5af9920e46d3ed0f3a91ce5c2d2c578cc5faa5 /source/blender/editors/space_script
parentc0a6d07212d5908b3ab162ca0b29830662ec25a8 (diff)
Adding undo flag to the python run flag operator.
It's safer this way.
Diffstat (limited to 'source/blender/editors/space_script')
-rw-r--r--source/blender/editors/space_script/script_edit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/space_script/script_edit.c b/source/blender/editors/space_script/script_edit.c
index 355095ea290..153f1236dce 100644
--- a/source/blender/editors/space_script/script_edit.c
+++ b/source/blender/editors/space_script/script_edit.c
@@ -81,6 +81,7 @@ void SCRIPT_OT_python_file_run(wmOperatorType *ot)
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;