Fix typo in CanvasItem visibility propagation backport

This commit is contained in:
Haoyu Qiu 2022-02-18 19:12:29 +08:00
parent e2287a201a
commit 85be83ebbb
1 changed files with 1 additions and 1 deletions

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)); CanvasItem *c = Object::cast_to<CanvasItem>(get_child(i));
if (c && c->visible) { //should the toplevels stop propagation? i think so but.. 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);
} }
} }