Let Unlink Action operator have an undo step

I noticed while rigging a character and editing actions that the Unlink Action operator had no undo step. Doesn't feel intentional, so this patch adds the necessary flags.

Reviewed By: mont29

Differential Revision: https://developer.blender.org/D12346
This commit is contained in:
Demeter Dzadik 2021-11-09 16:26:51 +01:00 committed by Bastien Montagne
parent 0bdf9d10a4
commit e452c43fd6
1 changed files with 3 additions and 0 deletions

View File

@ -702,6 +702,9 @@ void ACTION_OT_unlink(wmOperatorType *ot)
"Clear Fake User and remove "
"copy stashed in this data-block's NLA stack");
RNA_def_property_flag(prop, PROP_SKIP_SAVE);
/* flags */
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
}
/* ************************************************************************** */