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:
@@ -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 *********************/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user