Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-04-06 05:13:01 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-04-06 05:13:01 +0400
commit4b15fcf4970511f021735cbf86acfc28680679ec (patch)
tree5b6a4d815561cd2bf0c45f17119a3fbfab2386b3 /source/blender/editors/animation/fmodifier_ui.c
parent751bbd0b6ac1f75ca070bf78580de7a21c6bacad (diff)
fix [#26801] Undoing Animation modifiers undoes 2 steps.
also found grease pencil layer operators were not flagged to use undo.
Diffstat (limited to 'source/blender/editors/animation/fmodifier_ui.c')
-rw-r--r--source/blender/editors/animation/fmodifier_ui.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/animation/fmodifier_ui.c b/source/blender/editors/animation/fmodifier_ui.c
index 85063be852d..954928fc486 100644
--- a/source/blender/editors/animation/fmodifier_ui.c
+++ b/source/blender/editors/animation/fmodifier_ui.c
@@ -62,6 +62,7 @@
#include "UI_resources.h"
#include "ED_anim_api.h"
+#include "ED_util.h"
/* ********************************************** */
/* UI STUFF */
@@ -99,6 +100,8 @@ static void delete_fmodifier_cb (bContext *C, void *fmods_v, void *fcm_v)
/* remove the given F-Modifier from the active modifier-stack */
remove_fmodifier(modifiers, fcm);
+
+ ED_undo_push(C, "Delete F-Curve Modifier");
/* send notifiers */
// XXX for now, this is the only way to get updates in all the right places... but would be nice to have a special one in this case