Fix #23196: running python scripts didn't do an undo push. Now it does

means you can easily undo what the script did, and keeps the undo stack
up to date. Maybe sometimes it's not necessary, but I think it's
reasonable to do this always.
This commit is contained in:
2010-08-06 16:33:36 +00:00
parent 55676442db
commit 6405342d9e

View File

@@ -584,8 +584,10 @@ void TEXT_OT_run_script(wmOperatorType *ot)
/* api callbacks */
ot->poll= run_script_poll;
ot->exec= run_script_exec;
}
/* flags */
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
}
/******************* refresh pyconstraints operator *********************/