From 1241e9170711acfa0fbf99d5289b0241f6db1c23 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 11 Apr 2021 14:43:05 +1000 Subject: Cleanup: use ELEM, STREQ macros --- source/blender/modifiers/intern/MOD_ui_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/modifiers') 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)); -- cgit v1.2.3