[Bf-blender-cvs] [e452c43fd6a] master: Let Unlink Action operator have an undo step

Demeter Dzadik noreply at git.blender.org
Tue Nov 9 16:58:55 CET 2021


Commit: e452c43fd6a6ac5a483f3811272a17588e702ed8
Author: Demeter Dzadik
Date:   Tue Nov 9 16:26:51 2021 +0100
Branches: master
https://developer.blender.org/rBe452c43fd6a6ac5a483f3811272a17588e702ed8

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

===================================================================

M	source/blender/editors/space_action/action_data.c

===================================================================

diff --git a/source/blender/editors/space_action/action_data.c b/source/blender/editors/space_action/action_data.c
index a4fd2d81778..9ff46d96207 100644
--- a/source/blender/editors/space_action/action_data.c
+++ b/source/blender/editors/space_action/action_data.c
@@ -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;
 }
 
 /* ************************************************************************** */



More information about the Bf-blender-cvs mailing list