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>2019-05-31 16:21:16 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-05-31 16:22:52 +0300
commitaba4e6810f8b4d0e459137b64e061a2cadc457d1 (patch)
tree2b6159c7ba0f23c020600b71276772fa4a882b5b /source/blender/editors/include/ED_anim_api.h
parent72a563cdee8fef198a200ff65b57ddb847c01795 (diff)
Cleanup: style, use braces in source/ (include disabled blocks)
Diffstat (limited to 'source/blender/editors/include/ED_anim_api.h')
-rw-r--r--source/blender/editors/include/ED_anim_api.h18
1 files changed, 12 insertions, 6 deletions
diff --git a/source/blender/editors/include/ED_anim_api.h b/source/blender/editors/include/ED_anim_api.h
index 7a29e6b5e66..230d62d400c 100644
--- a/source/blender/editors/include/ED_anim_api.h
+++ b/source/blender/editors/include/ED_anim_api.h
@@ -760,12 +760,15 @@ float ANIM_unit_mapping_get_factor(
*/
#define ACHANNEL_SET_FLAG(channel, smode, sflag) \
{ \
- if (smode == ACHANNEL_SETFLAG_INVERT) \
+ if (smode == ACHANNEL_SETFLAG_INVERT) { \
(channel)->flag ^= (sflag); \
- else if (smode == ACHANNEL_SETFLAG_ADD) \
+ } \
+ else if (smode == ACHANNEL_SETFLAG_ADD) { \
(channel)->flag |= (sflag); \
- else \
+ } \
+ else { \
(channel)->flag &= ~(sflag); \
+ } \
} \
((void)0)
@@ -776,12 +779,15 @@ float ANIM_unit_mapping_get_factor(
*/
#define ACHANNEL_SET_FLAG_NEG(channel, smode, sflag) \
{ \
- if (smode == ACHANNEL_SETFLAG_INVERT) \
+ if (smode == ACHANNEL_SETFLAG_INVERT) { \
(channel)->flag ^= (sflag); \
- else if (smode == ACHANNEL_SETFLAG_ADD) \
+ } \
+ else if (smode == ACHANNEL_SETFLAG_ADD) { \
(channel)->flag &= ~(sflag); \
- else \
+ } \
+ else { \
(channel)->flag |= (sflag); \
+ } \
} \
((void)0)