From df5df1191680d2602583a3c5925466e8f2a0fd91 Mon Sep 17 00:00:00 2001 From: Yuri Sizov Date: Mon, 10 Apr 2023 16:18:46 +0200 Subject: Always cache parent visibility in CanvasItem (cherry picked from commit fd6a743823932639ba30e54d7e65ccd42192d88d) --- scene/main/canvas_item.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'scene') diff --git a/scene/main/canvas_item.cpp b/scene/main/canvas_item.cpp index 72fb838732..419e5d5c06 100644 --- a/scene/main/canvas_item.cpp +++ b/scene/main/canvas_item.cpp @@ -341,9 +341,7 @@ void CanvasItem::_notification(int p_what) { } void CanvasItem::_window_visibility_changed() { - if (visible) { - _propagate_visibility_changed(window->is_visible()); - } + _propagate_visibility_changed(window->is_visible()); } void CanvasItem::queue_redraw() { -- cgit v1.2.3