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:
authorDalai Felinto <dfelinto@gmail.com>2018-01-12 14:04:37 +0300
committerDalai Felinto <dfelinto@gmail.com>2018-01-12 14:07:16 +0300
commitd931f6f785390388666be43f05f509800ccf43b0 (patch)
tree95a2738f870fb9560033898531eb467ba17156af /source/blender/editors/space_outliner/outliner_tree.c
parentde176b75b2040cde2ff0e60932f6a0b0b880ed41 (diff)
Outliner: Harmless cleanup
There is even a chance the compilers handles this itself, but we should try to use the internal storage as much as possible (and save 0.000001s in the process)
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 4097751fd0c..e1ac6615ea4 100644
--- a/source/blender/editors/space_outliner/outliner_tree.c
+++ b/source/blender/editors/space_outliner/outliner_tree.c
@@ -1259,7 +1259,7 @@ static TreeElement *outliner_add_element(SpaceOops *soops, ListBase *lb, void *i
te->flag |= TE_LAZY_CLOSED;
}
- if ((type != TSE_LAYER_COLLECTION) && GS(id->name) == ID_GR) {
+ if ((type != TSE_LAYER_COLLECTION) && (te->idcode == ID_GR)) {
Group *group = (Group *)id;
outliner_add_layer_collections_recursive(soops, &te->subtree, id, &group->view_layer->layer_collections, NULL);
}