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:
authorJoshua Leung <aligorith@gmail.com>2006-12-17 06:03:05 +0300
committerJoshua Leung <aligorith@gmail.com>2006-12-17 06:03:05 +0300
commite6434898c86271695626a666ae9fc80a189fde7d (patch)
treec00a9e806d18ff0c6fc55b58ed07e13a0383d067 /source/blender/src/header_action.c
parent1041ad47195b78ed3c2005355143056579b9b69c (diff)
Removed double confirmation for deleting keys in action editor.
Diffstat (limited to 'source/blender/src/header_action.c')
-rw-r--r--source/blender/src/header_action.c13
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: