Fix #122609: Child object dimmed in outliner when parent is hidden

Caused by eea73bffb4
Return visibility state of ID_OB instead of early exit from switch case.

Pull Request: https://projects.blender.org/blender/blender/pulls/122653
This commit is contained in:
Pratik Borhade
2024-06-04 13:41:03 +02:00
committed by Pratik Borhade
parent ade3470ccc
commit 028484f531

View File

@@ -3300,10 +3300,8 @@ static bool element_should_draw_faded(const TreeViewContext *tvc,
(ViewLayer *)tvc->view_layer, (Object *)ob);
const bool is_visible = (base != nullptr) &&
(base->flag & BASE_ENABLED_AND_VISIBLE_IN_DEFAULT_VIEWPORT);
if (!is_visible) {
return true;
}
break;
return !is_visible;
}
default: {
if (te->parent) {