1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-02 16:48:55 +00:00

Fix CanvasItem visibility propagation

This commit is contained in:
kobewi
2022-02-21 11:11:03 +01:00
parent fe8ea0de5b
commit 642591b6a9
4 changed files with 19 additions and 10 deletions

View File

@@ -59,7 +59,7 @@ void CanvasLayer::set_visible(bool p_visible) {
if (c->is_visible()) {
c->_propagate_visibility_changed(p_visible);
} else {
c->notification(CanvasItem::NOTIFICATION_VISIBILITY_CHANGED);
c->parent_visible_in_tree = p_visible;
}
}
}