diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-04-19 09:16:37 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-04-19 09:16:37 +0300 |
commit | 9f7f6d55404defb1a19b174d237b6e6de85271a2 (patch) | |
tree | 0c75d7bf89ae7e82995cb75d58f76d865d3d7859 /source/blender | |
parent | f28aec17e9d6b955f776a5fb83ef67786a07bb6a (diff) |
Undo: add missing flag for text delete
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/space_text/text_ops.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/space_text/text_ops.c b/source/blender/editors/space_text/text_ops.c index 223a3031f3b..68338bf2337 100644 --- a/source/blender/editors/space_text/text_ops.c +++ b/source/blender/editors/space_text/text_ops.c @@ -2063,6 +2063,9 @@ void TEXT_OT_delete(wmOperatorType *ot) ot->exec = text_delete_exec; ot->poll = text_edit_poll; + /* flags */ + ot->flag = OPTYPE_UNDO; + /* properties */ RNA_def_enum(ot->srna, "type", delete_type_items, DEL_NEXT_CHAR, "Type", "Which part of the text to delete"); } |