diff options
Diffstat (limited to 'source/blender/src/header_action.c')
-rw-r--r-- | source/blender/src/header_action.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/source/blender/src/header_action.c b/source/blender/src/header_action.c index 76244ff2e6a..97c328f0b4f 100644 --- a/source/blender/src/header_action.c +++ b/source/blender/src/header_action.c @@ -59,6 +59,7 @@ #include "BIF_resources.h" #include "BIF_screen.h" #include "BIF_space.h" +#include "BIF_toolbox.h" #include "BKE_action.h" #include "BKE_armature.h" @@ -999,11 +1000,13 @@ static void do_action_keymenu(void *arg, int event) break; case ACTMENU_KEY_DELETE: - if (key) { - delete_meshchannel_keys(key); - } - else if (act) { - delete_actionchannel_keys (); + if (okee("Erase selected keys")) { + if (key) { + delete_meshchannel_keys(key); + } + else if (act) { + delete_actionchannel_keys (); + } } break; case ACTMENU_KEY_BAKE: |