From 5e3a86aea66972361bc010c64d03f7336627813d Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Sun, 4 Dec 2022 14:49:19 +0800 Subject: [PATCH] Fix CanvasLayer visibility toggle can only run once per frame --- scene/main/canvas_layer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/main/canvas_layer.cpp b/scene/main/canvas_layer.cpp index c67a17ee5..3af42294a 100644 --- a/scene/main/canvas_layer.cpp +++ b/scene/main/canvas_layer.cpp @@ -56,7 +56,7 @@ void CanvasLayer::set_visible(bool p_visible) { // For CanvasItems that is explicitly top level or has non-CanvasItem parents. if (is_inside_tree()) { const String group = "root_canvas" + itos(canvas.get_id()); - get_tree()->call_group_flags(SceneTree::GROUP_CALL_UNIQUE, group, "_toplevel_visibility_changed", p_visible); + get_tree()->call_group(group, "_toplevel_visibility_changed", p_visible); } }