Fix propagation of NOTIFICATION_VISIBILITY_CHANGED

This commit is contained in:
eska 2015-09-26 02:23:19 +02:00
parent 52eebdc001
commit b9bb2ab9c0

View File

@ -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);
}