diff options
author | Martin Poirier <theeth@yahoo.com> | 2009-11-22 23:26:54 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2009-11-22 23:26:54 +0300 |
commit | 4f21b1fcbaed6e819f7e3fd431cb01824b586260 (patch) | |
tree | 0b5af9920e46d3ed0f3a91ce5c2d2c578cc5faa5 /source/blender/editors/space_script | |
parent | c0a6d07212d5908b3ab162ca0b29830662ec25a8 (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.c | 1 |
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; |