Fix T66327 1/2: Outliner dupli empty is shown as collection when a different duplitype
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user