Undo: add missing flag for text delete

This commit is contained in:
2018-04-19 08:16:37 +02:00
parent f28aec17e9
commit 9f7f6d5540

View File

@@ -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");
}