mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 03:18:37 +08:00
Fix propagation of NOTIFICATION_VISIBILITY_CHANGED
This commit is contained in:
parent
52eebdc001
commit
b9bb2ab9c0
@ -265,7 +265,7 @@ void CanvasItem::_propagate_visibility_changed(bool p_visible) {
|
||||
|
||||
CanvasItem *c=get_child(i)->cast_to<CanvasItem>();
|
||||
|
||||
if (c && c->hidden!=p_visible) //should the toplevels stop propagation? i think so but..
|
||||
if (c && !c->hidden) //should the toplevels stop propagation? i think so but..
|
||||
c->_propagate_visibility_changed(p_visible);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user