Merge pull request #2533 from eska014/fix-visibility-notification-propagation

Fix propagation of `NOTIFICATION_VISIBILITY_CHANGED`
This commit is contained in:
Juan Linietsky 2015-09-26 00:59:19 -03:00
commit 10e7871091

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