From 028484f531688fbfba2a705fc704a6b9deeb0c81 Mon Sep 17 00:00:00 2001 From: Pratik Borhade Date: Tue, 4 Jun 2024 13:41:03 +0200 Subject: [PATCH] Fix #122609: Child object dimmed in outliner when parent is hidden Caused by eea73bffb47d8773d88fa55dcc59b3d4a2de4dfa Return visibility state of ID_OB instead of early exit from switch case. Pull Request: https://projects.blender.org/blender/blender/pulls/122653 --- source/blender/editors/space_outliner/outliner_draw.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/source/blender/editors/space_outliner/outliner_draw.cc b/source/blender/editors/space_outliner/outliner_draw.cc index 3106be15a77..7038d353ff5 100644 --- a/source/blender/editors/space_outliner/outliner_draw.cc +++ b/source/blender/editors/space_outliner/outliner_draw.cc @@ -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) {