Fix #125270: Outliner: Fade child object linked to other collection
In Outliner dim children that are linked to other collections. Pull Request: https://projects.blender.org/blender/blender/pulls/133637
This commit is contained in:
committed by
Harley Acheson
parent
e95687796d
commit
f4f2248a9c
@@ -3271,7 +3271,8 @@ static bool element_should_draw_faded(const TreeViewContext &tvc,
|
|||||||
(const Base *)te->directdata :
|
(const Base *)te->directdata :
|
||||||
BKE_view_layer_base_find((ViewLayer *)tvc.view_layer, (Object *)ob);
|
BKE_view_layer_base_find((ViewLayer *)tvc.view_layer, (Object *)ob);
|
||||||
const bool is_visible = (base != nullptr) &&
|
const bool is_visible = (base != nullptr) &&
|
||||||
(base->flag & BASE_ENABLED_AND_VISIBLE_IN_DEFAULT_VIEWPORT);
|
(base->flag & BASE_ENABLED_AND_VISIBLE_IN_DEFAULT_VIEWPORT) &&
|
||||||
|
!BLI_listbase_is_empty(&te->subtree);
|
||||||
|
|
||||||
return !is_visible;
|
return !is_visible;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user