summaryrefslogtreecommitdiffstats
path: root/scene/main/canvas_layer.cpp
diff options
context:
space:
mode:
authorMarkus Sauermann <6299227+Sauermann@users.noreply.github.com>2022-02-22 01:13:32 +0100
committerMarkus Sauermann <6299227+Sauermann@users.noreply.github.com>2022-02-22 10:13:02 +0100
commitdce6cb7393ae20a2513a0e98c8e55399f27a4b05 (patch)
tree665e012d0b580c189c062a538730d47e20f7ebfe /scene/main/canvas_layer.cpp
parentc77348b4688b7c58b13d7fd59d8e54a242bb8829 (diff)
downloadredot-engine-dce6cb7393ae20a2513a0e98c8e55399f27a4b05.tar.gz
Fix invisible CanvasItem visibility issue
Diffstat (limited to 'scene/main/canvas_layer.cpp')
-rw-r--r--scene/main/canvas_layer.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/scene/main/canvas_layer.cpp b/scene/main/canvas_layer.cpp
index be24620904..7aa4d391f8 100644
--- a/scene/main/canvas_layer.cpp
+++ b/scene/main/canvas_layer.cpp
@@ -58,11 +58,7 @@ void CanvasLayer::set_visible(bool p_visible) {
if (c) {
RenderingServer::get_singleton()->canvas_item_set_visible(c->get_canvas_item(), p_visible && c->is_visible());
- if (c->is_visible()) {
- c->_propagate_visibility_changed(p_visible);
- } else {
- c->parent_visible_in_tree = p_visible;
- }
+ c->_propagate_visibility_changed(p_visible);
}
}
}