From c055e8aeedfda4759bc3b360bebb4e47110858b3 Mon Sep 17 00:00:00 2001 From: Relintai Date: Tue, 5 Sep 2023 12:08:25 +0200 Subject: [PATCH] Use get_navigation_map() in GridMap. --- modules/gridmap/grid_map.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/gridmap/grid_map.cpp b/modules/gridmap/grid_map.cpp index 04b35960c..f30bf4648 100644 --- a/modules/gridmap/grid_map.cpp +++ b/modules/gridmap/grid_map.cpp @@ -1365,7 +1365,7 @@ void GridMap::_update_navigation_debug_edge_connections() { } void GridMap::_navigation_map_changed(RID p_map) { - if (bake_navigation && is_inside_tree() && p_map == get_world_3d()->get_navigation_map()) { + if (bake_navigation && is_inside_tree() && p_map == get_navigation_map()) { _update_navigation_debug_edge_connections(); } } @@ -1417,7 +1417,7 @@ void GridMap::_update_octant_navigation_debug_edge_connections_mesh(const Octant g.navigation_debug_edge_connections_mesh->clear_surfaces(); - float edge_connection_margin = NavigationServer::get_singleton()->map_get_edge_connection_margin(get_world_3d()->get_navigation_map()); + float edge_connection_margin = NavigationServer::get_singleton()->map_get_edge_connection_margin(get_navigation_map()); float half_edge_connection_margin = edge_connection_margin * 0.5; Vector vertex_array;