Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2010-08-06 20:33:36 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2010-08-06 20:33:36 +0400
commit6405342d9e55809a0764b3cff37a57aef522252f (patch)
tree273dbf636eb8a41d84c8b42dc41819ee2db58085 /source
parent55676442db63d2c1cc90874b6849b56ea98c6840 (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')
-rw-r--r--source/blender/editors/space_text/text_ops.c4
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 *********************/