mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Fix CanvasItem visibility propagation
This commit is contained in:
parent
3b3916f4f0
commit
3a77484f70
4 changed files with 25 additions and 18 deletions
|
|
@ -61,7 +61,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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue