[Bf-blender-cvs] [d931f6f7853] blender2.8: Outliner: Harmless cleanup

Dalai Felinto noreply at git.blender.org
Fri Jan 12 12:08:21 CET 2018


Commit: d931f6f785390388666be43f05f509800ccf43b0
Author: Dalai Felinto
Date:   Fri Jan 12 09:04:37 2018 -0200
Branches: blender2.8
https://developer.blender.org/rBd931f6f785390388666be43f05f509800ccf43b0

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)

===================================================================

M	source/blender/editors/space_outliner/outliner_tree.c

===================================================================

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);
 	}



More information about the Bf-blender-cvs mailing list