From ee74f87e493140b696440f532f244bac987245be Mon Sep 17 00:00:00 2001 From: smix8 <52464204+smix8@users.noreply.github.com> Date: Tue, 24 May 2022 19:50:57 +0200 Subject: [PATCH] Fix GridMap not adding custom mesh offsets to NavigationMesh generation Fix GridMap not adding custom mesh offsets to NavigationMesh generation (cherry picked from commit ae4b2597a11308d86fc63acd5607c37fd2ce6304) --- modules/gridmap/grid_map.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gridmap/grid_map.cpp b/modules/gridmap/grid_map.cpp index e3aa7e320bc4..f0dec03d005a 100644 --- a/modules/gridmap/grid_map.cpp +++ b/modules/gridmap/grid_map.cpp @@ -1004,7 +1004,7 @@ Array GridMap::get_meshes() const { xform.set_origin(cellpos * cell_size + ofs); xform.basis.scale(Vector3(cell_scale, cell_scale, cell_scale)); - meshes.push_back(xform); + meshes.push_back(xform * mesh_library->get_item_mesh_transform(id)); meshes.push_back(mesh); }