You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Fix Navigation API abbreviations inconsistency
Schema for navigation to name user facing API with "navigation" without abbreviation and e.g. NavigationServer internals with abbr "nav".
This commit is contained in:
@@ -160,23 +160,23 @@ void MeshLibraryEditor::_import_scene(Node *p_scene, Ref<MeshLibrary> p_library,
|
||||
|
||||
p_library->set_item_shapes(id, collisions);
|
||||
|
||||
Ref<NavigationMesh> navmesh;
|
||||
Transform3D navmesh_transform;
|
||||
Ref<NavigationMesh> navigation_mesh;
|
||||
Transform3D navigation_mesh_transform;
|
||||
for (int j = 0; j < mi->get_child_count(); j++) {
|
||||
Node *child2 = mi->get_child(j);
|
||||
if (!Object::cast_to<NavigationRegion3D>(child2)) {
|
||||
continue;
|
||||
}
|
||||
NavigationRegion3D *sb = Object::cast_to<NavigationRegion3D>(child2);
|
||||
navmesh = sb->get_navigation_mesh();
|
||||
navmesh_transform = sb->get_transform();
|
||||
if (!navmesh.is_null()) {
|
||||
navigation_mesh = sb->get_navigation_mesh();
|
||||
navigation_mesh_transform = sb->get_transform();
|
||||
if (!navigation_mesh.is_null()) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!navmesh.is_null()) {
|
||||
p_library->set_item_navmesh(id, navmesh);
|
||||
p_library->set_item_navmesh_transform(id, navmesh_transform);
|
||||
if (!navigation_mesh.is_null()) {
|
||||
p_library->set_item_navigation_mesh(id, navigation_mesh);
|
||||
p_library->set_item_navigation_mesh_transform(id, navigation_mesh_transform);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user