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:
Diffstat (limited to 'source/blender/editors/animation/anim_channels_defines.c')
-rw-r--r--source/blender/editors/animation/anim_channels_defines.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/source/blender/editors/animation/anim_channels_defines.c b/source/blender/editors/animation/anim_channels_defines.c
index b7aa150ea7a..cebf807d346 100644
--- a/source/blender/editors/animation/anim_channels_defines.c
+++ b/source/blender/editors/animation/anim_channels_defines.c
@@ -4254,20 +4254,26 @@ short ANIM_channel_setting_get(bAnimContext *ac, bAnimListElem *ale, eAnimChanne
#define ACF_SETTING_SET(sval, sflag, smode) \
{ \
if (negflag) { \
- if (smode == ACHANNEL_SETFLAG_INVERT) \
+ if (smode == ACHANNEL_SETFLAG_INVERT) { \
(sval) ^= (sflag); \
- else if (smode == ACHANNEL_SETFLAG_ADD) \
+ } \
+ else if (smode == ACHANNEL_SETFLAG_ADD) { \
(sval) &= ~(sflag); \
- else \
+ } \
+ else { \
(sval) |= (sflag); \
+ } \
} \
else { \
- if (smode == ACHANNEL_SETFLAG_INVERT) \
+ if (smode == ACHANNEL_SETFLAG_INVERT) { \
(sval) ^= (sflag); \
- else if (smode == ACHANNEL_SETFLAG_ADD) \
+ } \
+ else if (smode == ACHANNEL_SETFLAG_ADD) { \
(sval) |= (sflag); \
- else \
+ } \
+ else { \
(sval) &= ~(sflag); \
+ } \
} \
} \
(void)0