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>2009-12-03 13:27:22 +0300
committerJoshua Leung <aligorith@gmail.com>2009-12-03 13:27:22 +0300
commit1fd581ad77e2958e4ea7a6faf0afd823d26f042c (patch)
tree7c8cfffb90e79f2e8cdb940a9a1b61575ae15636 /source/blender/editors/animation/anim_channels_edit.c
parentb440fe1611f9799e40c736d8b3e8bbc4ef5f0a01 (diff)
Bugfix: Toggle animation channel visibility (shift-v) was not flushing the new values correctly
- Modifying groups did not flush status to channels below - Objects were always toggled. Still need to figure out why this didn't work right...
Diffstat (limited to 'source/blender/editors/animation/anim_channels_edit.c')
-rw-r--r--source/blender/editors/animation/anim_channels_edit.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/editors/animation/anim_channels_edit.c b/source/blender/editors/animation/anim_channels_edit.c
index e4ce26b6156..5842f476bc6 100644
--- a/source/blender/editors/animation/anim_channels_edit.c
+++ b/source/blender/editors/animation/anim_channels_edit.c
@@ -1104,11 +1104,16 @@ static int animchannels_visibility_toggle_exec(bContext *C, wmOperator *op)
/* Now set the flags */
for (ale= anim_data.first; ale; ale= ale->next) {
+ /* hack: skip object channels for now, since flushing those will always flush everything, but they are always included */
+ // TODO: find out why this is the case, and fix that
+ if (ale->type == ANIMTYPE_OBJECT)
+ continue;
+
/* change the setting */
ANIM_channel_setting_set(&ac, ale, ACHANNEL_SETTING_VISIBLE, vis);
/* now, also flush selection status up/down as appropriate */
- //ANIM_visibility_flush_anim_channels(&ac, &all_data, ale, (vis == ACHANNEL_SETFLAG_ADD));
+ ANIM_visibility_flush_anim_channels(&ac, &all_data, ale, (vis == ACHANNEL_SETFLAG_ADD));
}
/* cleanup */