Fix UI glitch in outliner when hiding excluded collections.
In ViewLayer view, overrides of excluded collections would then show one level higher, due to bad handling of those excluded collection in draw code. Reported by studio, thanks. @jbakker should be backported to 2.93LTS.
This commit is contained in:
parent
6c97c7f767
commit
e8d75b957f
|
@ -172,8 +172,9 @@ void TreeDisplayViewLayer::add_layer_collections_recursive(ListBase &tree,
|
|||
add_layer_collection_objects(ten->subtree, *lc, *ten);
|
||||
}
|
||||
|
||||
const bool lib_overrides_visible = !SUPPORT_FILTER_OUTLINER(&space_outliner_) ||
|
||||
((space_outliner_.filter & SO_FILTER_NO_LIB_OVERRIDE) == 0);
|
||||
const bool lib_overrides_visible = !exclude && (!SUPPORT_FILTER_OUTLINER(&space_outliner_) ||
|
||||
((space_outliner_.filter &
|
||||
SO_FILTER_NO_LIB_OVERRIDE) == 0));
|
||||
|
||||
if (lib_overrides_visible && ID_IS_OVERRIDE_LIBRARY_REAL(&lc->collection->id)) {
|
||||
outliner_add_element(
|
||||
|
|
Loading…
Reference in New Issue