Merge pull request #58271 from timothyqiu/visible-propagate-fix

This commit is contained in:
Rémi Verschelde 2022-02-18 13:19:42 +01:00 committed by GitHub
commit 7384475493
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -371,7 +371,7 @@ void CanvasItem::_propagate_visibility_changed(bool p_visible, bool p_was_visibl
CanvasItem *c = Object::cast_to<CanvasItem>(get_child(i));
if (c && c->visible) { //should the toplevels stop propagation? i think so but..
c->_propagate_visibility_changed(p_visible, !p_visible);
c->_propagate_visibility_changed(p_visible);
}
}