Skip to content

Commit

Permalink
Fix typo in CanvasItem visibility propagation backport
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyqiu committed Feb 18, 2022
1 parent e2287a2 commit 85be83e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/2d/canvas_item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 85be83e

Please sign in to comment.