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>2021-04-11 07:43:05 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-04-11 07:43:05 +0300
commit1241e9170711acfa0fbf99d5289b0241f6db1c23 (patch)
tree92bc1bcd417605c771046cebd7741126e10700a0 /source/blender/modifiers/intern/MOD_ui_common.c
parentf9c0d7261a22d8d237e8cc23453c636c3a09c58b (diff)
Cleanup: use ELEM, STREQ macros
Diffstat (limited to 'source/blender/modifiers/intern/MOD_ui_common.c')
-rw-r--r--source/blender/modifiers/intern/MOD_ui_common.c2
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));