summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorYuri Sizov <yuris@humnom.net>2023-04-10 16:18:46 +0200
committerYuri Sizov <yuris@humnom.net>2023-04-24 14:04:19 +0200
commitdf5df1191680d2602583a3c5925466e8f2a0fd91 (patch)
tree735906cad62458738c78ef89f4987bc1c6333596 /scene
parent8c372f4109f1bcf75a02923aca4292e2bee38b3a (diff)
Always cache parent visibility in CanvasItem
(cherry picked from commit fd6a743823932639ba30e54d7e65ccd42192d88d)
Diffstat (limited to 'scene')
-rw-r--r--scene/main/canvas_item.cpp4
1 files changed, 1 insertions, 3 deletions
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() {