diff options
author | Sebastian Parborg <darkdefende@gmail.com> | 2020-07-03 22:22:41 +0300 |
---|---|---|
committer | Sebastian Parborg <darkdefende@gmail.com> | 2020-07-03 22:23:33 +0300 |
commit | d7dbf90a0252ae09649b9033d1f199fa6acd8d07 (patch) | |
tree | b968d8183fe6456dcfe42f6587cc786c90d56182 /source/blender/editors/animation/anim_channels_defines.c | |
parent | 185fe9cd8bb177070ce8aecaa036d9880cce380e (diff) |
Clang-tidy: Enable braces-around-statements warning
Diffstat (limited to 'source/blender/editors/animation/anim_channels_defines.c')
-rw-r--r-- | source/blender/editors/animation/anim_channels_defines.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/source/blender/editors/animation/anim_channels_defines.c b/source/blender/editors/animation/anim_channels_defines.c index 843b8400a32..79c465c1f33 100644 --- a/source/blender/editors/animation/anim_channels_defines.c +++ b/source/blender/editors/animation/anim_channels_defines.c @@ -2842,8 +2842,9 @@ static void *acf_dshair_setting_ptr(bAnimListElem *ale, eAnimChannel_Settings se case ACHANNEL_SETTING_SELECT: /* selected */ case ACHANNEL_SETTING_MUTE: /* muted (for NLA only) */ case ACHANNEL_SETTING_VISIBLE: /* visible (for Graph Editor only) */ - if (hair->adt) + if (hair->adt) { return GET_ACF_FLAG_PTR(hair->adt->flag, type); + } return NULL; default: /* unsupported */ @@ -2922,8 +2923,9 @@ static void *acf_dspointcloud_setting_ptr(bAnimListElem *ale, case ACHANNEL_SETTING_SELECT: /* selected */ case ACHANNEL_SETTING_MUTE: /* muted (for NLA only) */ case ACHANNEL_SETTING_VISIBLE: /* visible (for Graph Editor only) */ - if (pointcloud->adt) + if (pointcloud->adt) { return GET_ACF_FLAG_PTR(pointcloud->adt->flag, type); + } return NULL; default: /* unsupported */ @@ -3002,8 +3004,9 @@ static void *acf_dsvolume_setting_ptr(bAnimListElem *ale, case ACHANNEL_SETTING_SELECT: /* selected */ case ACHANNEL_SETTING_MUTE: /* muted (for NLA only) */ case ACHANNEL_SETTING_VISIBLE: /* visible (for Graph Editor only) */ - if (volume->adt) + if (volume->adt) { return GET_ACF_FLAG_PTR(volume->adt->flag, type); + } return NULL; default: /* unsupported */ @@ -3080,8 +3083,9 @@ static void *acf_dssimulation_setting_ptr(bAnimListElem *ale, case ACHANNEL_SETTING_SELECT: /* selected */ case ACHANNEL_SETTING_MUTE: /* muted (for NLA only) */ case ACHANNEL_SETTING_VISIBLE: /* visible (for Graph Editor only) */ - if (simulation->adt) + if (simulation->adt) { return GET_ACF_FLAG_PTR(simulation->adt->flag, type); + } return NULL; default: /* unsupported */ |