diff options
Diffstat (limited to 'modules/navigation/nav_region.cpp')
| -rw-r--r-- | modules/navigation/nav_region.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/navigation/nav_region.cpp b/modules/navigation/nav_region.cpp index d0f055874e..357ee80d42 100644 --- a/modules/navigation/nav_region.cpp +++ b/modules/navigation/nav_region.cpp @@ -105,6 +105,10 @@ void NavRegion::update_polygons() { return; } + if (!Math::is_equal_approx(double(map->get_cell_size()), double(mesh->get_cell_size()))) { + ERR_PRINT_ONCE("Navigation map synchronization error. Attempted to update a navigation region with a navigation mesh that uses a different `cell_size` than the `cell_size` set on the navigation map."); + } + Vector<Vector3> vertices = mesh->get_vertices(); int len = vertices.size(); if (len == 0) { |
