From 9f7f6d55404defb1a19b174d237b6e6de85271a2 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 19 Apr 2018 08:16:37 +0200 Subject: Undo: add missing flag for text delete --- source/blender/editors/space_text/text_ops.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/editors/space_text/text_ops.c') 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"); } -- cgit v1.2.3