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/editors/space_outliner/outliner_tree.c
parentf9c0d7261a22d8d237e8cc23453c636c3a09c58b (diff)
Cleanup: use ELEM, STREQ macros
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_tree.c')
-rw-r--r--source/blender/editors/space_outliner/outliner_tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_outliner/outliner_tree.c b/source/blender/editors/space_outliner/outliner_tree.c
index 14ab7fd9974..bed7683703f 100644
--- a/source/blender/editors/space_outliner/outliner_tree.c
+++ b/source/blender/editors/space_outliner/outliner_tree.c
@@ -1340,7 +1340,7 @@ static void outliner_sort(ListBase *lb)
tp->name = te->name;
tp->idcode = te->idcode;
- if ((tselem->type != TSE_SOME_ID) && tselem->type != TSE_DEFGROUP) {
+ if (!ELEM(tselem->type, TSE_SOME_ID, TSE_DEFGROUP)) {
tp->idcode = 0; /* Don't sort this. */
}
if (tselem->type == TSE_ID_BASE) {