Adding undo flag to the python run flag operator.

It's safer this way.
This commit is contained in:
2009-11-22 20:26:54 +00:00
parent c0a6d07212
commit 4f21b1fcba

View File

@@ -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;