diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-04-11 07:43:05 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-04-11 07:43:05 +0300 |
commit | 1241e9170711acfa0fbf99d5289b0241f6db1c23 (patch) | |
tree | 92bc1bcd417605c771046cebd7741126e10700a0 /source/blender/modifiers | |
parent | f9c0d7261a22d8d237e8cc23453c636c3a09c58b (diff) |
Cleanup: use ELEM, STREQ macros
Diffstat (limited to 'source/blender/modifiers')
-rw-r--r-- | source/blender/modifiers/intern/MOD_ui_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/modifiers/intern/MOD_ui_common.c b/source/blender/modifiers/intern/MOD_ui_common.c index 6b2facc16a2..fd37ad18b4c 100644 --- a/source/blender/modifiers/intern/MOD_ui_common.c +++ b/source/blender/modifiers/intern/MOD_ui_common.c @@ -351,7 +351,7 @@ static void modifier_panel_header(const bContext *C, Panel *panel) } } /* Collision and Surface are always enabled, hide buttons. */ - if ((md->type != eModifierType_Collision) && (md->type != eModifierType_Surface)) { + if (!ELEM(md->type, eModifierType_Collision, eModifierType_Surface)) { if (mti->flags & eModifierTypeFlag_SupportsEditmode) { sub = uiLayoutRow(row, true); uiLayoutSetActive(sub, (md->mode & eModifierMode_Realtime)); |