You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-28 16:07:14 +00:00
SceneTreeDock: Fix wrong argument in _has_visible_children
Seen while checking for unused variables, which `child` was.
This commit is contained in:
@@ -1551,7 +1551,7 @@ static bool _has_visible_children(Node* p_node) {
|
||||
for(int i=0;i<p_node->get_child_count();i++) {
|
||||
|
||||
Node* child = p_node->get_child(i);
|
||||
if (!_is_node_visible(p_node))
|
||||
if (!_is_node_visible(child))
|
||||
continue;
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user