summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorsmix8 <52464204+smix8@users.noreply.github.com>2022-05-24 19:50:57 +0200
committersmix8 <52464204+smix8@users.noreply.github.com>2022-05-24 19:50:57 +0200
commitae4b2597a11308d86fc63acd5607c37fd2ce6304 (patch)
treee36b329291c93adf71d156b17b166c3ede25c2e3 /modules
parent01d383a8ff11791e823bb5283dc797ea37abe198 (diff)
Fix GridMap not adding custom mesh offsets to NavigationMesh generation
Fix GridMap not adding custom mesh offsets to NavigationMesh generation
Diffstat (limited to 'modules')
-rw-r--r--modules/gridmap/grid_map.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gridmap/grid_map.cpp b/modules/gridmap/grid_map.cpp
index c70a8121e8..dcdb520d11 100644
--- a/modules/gridmap/grid_map.cpp
+++ b/modules/gridmap/grid_map.cpp
@@ -970,7 +970,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);
}