[Bf-blender-cvs] [68c39e2b411] master: Fix T66327 1/2: Outliner dupli empty is shown as collection when a different duplitype
Dalai Felinto
noreply at git.blender.org
Fri Jul 5 17:29:10 CEST 2019
Commit: 68c39e2b41174f20c2c5f478ca5876f3be8d4c24
Author: Dalai Felinto
Date: Tue Jul 2 18:12:11 2019 -0300
Branches: master
https://developer.blender.org/rB68c39e2b41174f20c2c5f478ca5876f3be8d4c24
Fix T66327 1/2: Outliner dupli empty is shown as collection when a different duplitype
===================================================================
M source/blender/editors/space_outliner/outliner_draw.c
M source/blender/editors/space_outliner/outliner_tree.c
===================================================================
diff --git a/source/blender/editors/space_outliner/outliner_draw.c b/source/blender/editors/space_outliner/outliner_draw.c
index 768a375675e..7451c8672f4 100644
--- a/source/blender/editors/space_outliner/outliner_draw.c
+++ b/source/blender/editors/space_outliner/outliner_draw.c
@@ -2203,7 +2203,7 @@ TreeElementIcon tree_element_get_icon(TreeStoreElem *tselem, TreeElement *te)
data.icon = ICON_OUTLINER_OB_LIGHTPROBE;
break;
case OB_EMPTY:
- if (ob->instance_collection) {
+ if (ob->instance_collection && (ob->transflag & OB_DUPLICOLLECTION)) {
data.icon = ICON_OUTLINER_OB_GROUP_INSTANCE;
}
else if (ob->empty_drawtype == OB_EMPTY_IMAGE) {
diff --git a/source/blender/editors/space_outliner/outliner_tree.c b/source/blender/editors/space_outliner/outliner_tree.c
index d428a190549..421284f905b 100644
--- a/source/blender/editors/space_outliner/outliner_tree.c
+++ b/source/blender/editors/space_outliner/outliner_tree.c
@@ -515,7 +515,7 @@ static void outliner_add_object_contents(SpaceOutliner *soops,
}
/* duplicated group */
- if (ob->instance_collection) {
+ if (ob->instance_collection && (ob->transflag & OB_DUPLICOLLECTION)) {
outliner_add_element(soops, &te->subtree, ob->instance_collection, te, 0, 0);
}
}
More information about the Bf-blender-cvs
mailing list