mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-23 04:16:50 +01:00
Fix CanvasLayer visibility toggle can only run once per frame
This commit is contained in:
parent
8c306efe22
commit
5e3a86aea6
@ -56,7 +56,7 @@ void CanvasLayer::set_visible(bool p_visible) {
|
|||||||
// For CanvasItems that is explicitly top level or has non-CanvasItem parents.
|
// For CanvasItems that is explicitly top level or has non-CanvasItem parents.
|
||||||
if (is_inside_tree()) {
|
if (is_inside_tree()) {
|
||||||
const String group = "root_canvas" + itos(canvas.get_id());
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user