From 9c2ea7e296a603cba70e72b6a15fb3acd2403d32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Mon, 25 Apr 2022 15:16:44 +0200 Subject: Node: Re-add `find_node` as `find_child`, improve docs The new name contrasts it better with `find_parent`, and makes it clear that it only matches child/descendant nodes. Also rename `find_nodes` to `find_children` accordingly. --- editor/import/scene_import_settings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editor/import') diff --git a/editor/import/scene_import_settings.cpp b/editor/import/scene_import_settings.cpp index 4e53a644ee..b08622b910 100644 --- a/editor/import/scene_import_settings.cpp +++ b/editor/import/scene_import_settings.cpp @@ -423,7 +423,7 @@ void SceneImportSettings::_update_view_gizmos() { continue; } - TypedArray descendants = mesh_node->find_nodes("collider_view", "MeshInstance3D"); + TypedArray descendants = mesh_node->find_children("collider_view", "MeshInstance3D"); CRASH_COND_MSG(descendants.is_empty(), "This is unreachable, since the collider view is always created even when the collision is not used! If this is triggered there is a bug on the function `_fill_scene`."); -- cgit v1.2.3