diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-08-06 20:33:36 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-08-06 20:33:36 +0400 |
commit | 6405342d9e55809a0764b3cff37a57aef522252f (patch) | |
tree | 273dbf636eb8a41d84c8b42dc41819ee2db58085 /source/blender/editors/space_text | |
parent | 55676442db63d2c1cc90874b6849b56ea98c6840 (diff) |
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.
Diffstat (limited to 'source/blender/editors/space_text')
-rw-r--r-- | source/blender/editors/space_text/text_ops.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/space_text/text_ops.c b/source/blender/editors/space_text/text_ops.c index efdb1638558..087f83182fb 100644 --- a/source/blender/editors/space_text/text_ops.c +++ b/source/blender/editors/space_text/text_ops.c @@ -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 *********************/ |