summaryrefslogtreecommitdiff
path: root/scene/main/canvas_item.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/main/canvas_item.cpp')
-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() {