[Bf-blender-cvs] [9f7f6d55404] master: Undo: add missing flag for text delete
Campbell Barton
noreply at git.blender.org
Thu Apr 19 08:17:04 CEST 2018
Commit: 9f7f6d55404defb1a19b174d237b6e6de85271a2
Author: Campbell Barton
Date: Thu Apr 19 08:16:37 2018 +0200
Branches: master
https://developer.blender.org/rB9f7f6d55404defb1a19b174d237b6e6de85271a2
Undo: add missing flag for text delete
===================================================================
M 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");
}
More information about the Bf-blender-cvs
mailing list