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>2007-08-19 07:29:51 +0400
committerJoshua Leung <aligorith@gmail.com>2007-08-19 07:29:51 +0400
commitbe831dab1b27b45202f37d85c61deaf509acb4e7 (patch)
tree3920e7e020415d54604fa3f2d67ae60095d1397e /source/blender/src
parent909eefd46e4e9ac7783ff8ca646014fbae871208 (diff)
Action Editor Bugfixes:
* Insert Key (IKEY) menu was inserting keyframes on all channels when menu was dismissed, instead of not doing anything * Clean IPO and Insert Key now only work on selected channels (when asked to). Was a missing line of code.
Diffstat (limited to 'source/blender/src')
-rw-r--r--source/blender/src/editaction.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/src/editaction.c b/source/blender/src/editaction.c
index 0098da1284d..8b3e6e41053 100644
--- a/source/blender/src/editaction.c
+++ b/source/blender/src/editaction.c
@@ -324,6 +324,10 @@ static void actdata_filter_action (ListBase *act_data, bAction *act, int filter_
if (ale) BLI_addtail(act_data, ale);
}
}
+ else {
+ /* only consider selected channels - achan not selected */
+ continue;
+ }
/* check if expanded - if not, continue on to next action channel */
if (EXPANDED_ACHAN(achan) == 0 && (filter_mode & ACTFILTER_ONLYICU)==0)
@@ -1320,7 +1324,7 @@ void insertkey_action(void)
/* ask user what to keyframe */
mode = pupmenu("Insert Key%t|All Channels%x1|Only Selected Channels%x2");
- if (mode == 0) return;
+ if (mode <= 0) return;
/* filter data */
filter= (ACTFILTER_VISIBLE | ACTFILTER_FOREDIT | ACTFILTER_ONLYICU );
@@ -1351,7 +1355,7 @@ void insertkey_action(void)
/* ask user if they want to insert a keyframe */
mode = okee("Insert Keyframe?");
- if (mode == 0) return;
+ if (mode <= 0) return;
if (key->ipo) {
for (icu= key->ipo->curve.first; icu; icu=icu->next) {