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-24 14:51:45 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-04-24 14:51:45 +0400
commit8fdebf24f4fe405c77f13a72c45cf0f8e6bc1f3f (patch)
treee2b7d4d9f40b8f93afe15d25ef092b2242282637 /source/blender/editors/animation/anim_channels_edit.c
parent5c4743b9ee2e98fc9ba8738fefddd7698034752d (diff)
harmless changes to quiet clang static check warnings.
- made EXPANDED_AGRP take bAnimContext as an argument. - remove unneeded NULL check drawFacesColored functions. - comment some vars which are set but not used.
Diffstat (limited to 'source/blender/editors/animation/anim_channels_edit.c')
-rw-r--r--source/blender/editors/animation/anim_channels_edit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/animation/anim_channels_edit.c b/source/blender/editors/animation/anim_channels_edit.c
index 0845014c99e..4edcca46935 100644
--- a/source/blender/editors/animation/anim_channels_edit.c
+++ b/source/blender/editors/animation/anim_channels_edit.c
@@ -169,9 +169,9 @@ void ANIM_set_active_channel (bAnimContext *ac, void *data, short datatype, int
case ANIMTYPE_DSLAT:
{
/* need to verify that this data is valid for now */
- // XXX: ale may be null!
- if (ale->adt)
+ if (ale && ale->adt) {
ale->adt->flag |= ADT_UI_ACTIVE;
+ }
}
break;
}
@@ -1001,7 +1001,7 @@ static void rearrange_action_channels (bAnimContext *ac, bAction *act, short mod
for (agrp= act->groups.first; agrp; agrp= agrp->next) {
/* only consider F-Curves if they're visible (group expanded) */
- if (EXPANDED_AGRP(agrp)) {
+ if (EXPANDED_AGRP(ac, agrp)) {
rearrange_animchannel_islands(&agrp->channels, rearrange_func, mode, ANIMTYPE_FCURVE);
}
}