From fd6a743823932639ba30e54d7e65ccd42192d88d Mon Sep 17 00:00:00 2001 From: Yuri Sizov Date: Mon, 10 Apr 2023 16:18:46 +0200 Subject: [PATCH] Always cache parent visibility in CanvasItem --- scene/main/canvas_item.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scene/main/canvas_item.cpp b/scene/main/canvas_item.cpp index 4eabc4916cb..5d69fa9b456 100644 --- a/scene/main/canvas_item.cpp +++ b/scene/main/canvas_item.cpp @@ -350,9 +350,7 @@ void CanvasItem::update_draw_order() { } void CanvasItem::_window_visibility_changed() { - if (visible) { - _propagate_visibility_changed(window->is_visible()); - } + _propagate_visibility_changed(window->is_visible()); } void CanvasItem::queue_redraw() {