summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-03-16 11:15:15 -0700
committerGitHub <noreply@github.com>2019-03-16 11:15:15 -0700
commit43f147b5aa8f064961df53b763f7b68e7524d7db (patch)
tree409e5d72a50dcc83d84a1d11fd3cf280229425c4 /modules
parent39a5bb4fbc9977fe0ee88c547d997c3acc9650cb (diff)
parent1a397a78784023971124169dda9fc6d9c222a333 (diff)
Merge pull request #26308 from bojidar-bg/11722-meshlibrary-transforms
Consider StaticBody and NavMesh position when converting to a MeshLibrary
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 fe1eac6dc9..32a014e76d 100644
--- a/modules/gridmap/grid_map.cpp
+++ b/modules/gridmap/grid_map.cpp
@@ -517,7 +517,7 @@ bool GridMap::_octant_update(const OctantKey &p_key) {
Ref<NavigationMesh> navmesh = mesh_library->get_item_navmesh(c.item);
if (navmesh.is_valid()) {
Octant::NavMesh nm;
- nm.xform = xform;
+ nm.xform = xform * mesh_library->get_item_navmesh_transform(c.item);
if (navigation) {
nm.id = navigation->navmesh_add(navmesh, xform, this);