diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-05-31 16:21:16 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-05-31 16:22:52 +0300 |
commit | aba4e6810f8b4d0e459137b64e061a2cadc457d1 (patch) | |
tree | 2b6159c7ba0f23c020600b71276772fa4a882b5b /source/blender/editors/animation | |
parent | 72a563cdee8fef198a200ff65b57ddb847c01795 (diff) |
Cleanup: style, use braces in source/ (include disabled blocks)
Diffstat (limited to 'source/blender/editors/animation')
-rw-r--r-- | source/blender/editors/animation/anim_channels_edit.c | 3 | ||||
-rw-r--r-- | source/blender/editors/animation/anim_filter.c | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/editors/animation/anim_channels_edit.c b/source/blender/editors/animation/anim_channels_edit.c index 9e09fc485a6..21b9c7252d2 100644 --- a/source/blender/editors/animation/anim_channels_edit.c +++ b/source/blender/editors/animation/anim_channels_edit.c @@ -278,8 +278,9 @@ void ANIM_deselect_anim_channels( break; case ANIMTYPE_OBJECT: #if 0 /* for now, do not take object selection into account, since it gets too annoying */ - if (ale->flag & SELECT) + if (ale->flag & SELECT) { sel = ACHANNEL_SETFLAG_CLEAR; + } #endif break; case ANIMTYPE_GROUP: diff --git a/source/blender/editors/animation/anim_filter.c b/source/blender/editors/animation/anim_filter.c index a228d819286..e5846e270f0 100644 --- a/source/blender/editors/animation/anim_filter.c +++ b/source/blender/editors/animation/anim_filter.c @@ -455,10 +455,12 @@ bool ANIM_animdata_get_context(const bContext *C, bAnimContext *ac) { \ int _filter = filter_mode; \ short _doSubChannels = 0; \ - if (!(filter_mode & ANIMFILTER_LIST_VISIBLE) || (expanded_check)) \ + if (!(filter_mode & ANIMFILTER_LIST_VISIBLE) || (expanded_check)) { \ _doSubChannels = 1; \ - else if (!(filter_mode & ANIMFILTER_LIST_CHANNELS)) \ + } \ + else if (!(filter_mode & ANIMFILTER_LIST_CHANNELS)) { \ _doSubChannels = 2; \ + } \ else { \ filter_mode |= ANIMFILTER_TMP_PEEK; \ } \ |