diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-06-08 07:25:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-08 07:25:09 +0200 |
commit | 43f05bd6a0f98181b1055a1bd81d4bc8c3eae4ff (patch) | |
tree | 2dfab41ff0256aefce9010efa3e6b00dc774dc5b /modules | |
parent | 48dcafeed9d284d1cd872722d43735e973f18d57 (diff) | |
parent | cc0b525300ea35f4f1f80d89cd1244e2882ec07d (diff) |
Merge pull request #61797 from smix8/navigation_gridmap_region_xform_4.x
Fix GridMap applying wrong NavigationRegion transform
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gridmap/grid_map.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gridmap/grid_map.cpp b/modules/gridmap/grid_map.cpp index dcdb520d11..bd2c72f64d 100644 --- a/modules/gridmap/grid_map.cpp +++ b/modules/gridmap/grid_map.cpp @@ -535,7 +535,7 @@ bool GridMap::_octant_update(const OctantKey &p_key) { RID region = NavigationServer3D::get_singleton()->region_create(); NavigationServer3D::get_singleton()->region_set_layers(region, navigation_layers); NavigationServer3D::get_singleton()->region_set_navmesh(region, navmesh); - NavigationServer3D::get_singleton()->region_set_transform(region, get_global_transform() * mesh_library->get_item_navmesh_transform(c.item)); + NavigationServer3D::get_singleton()->region_set_transform(region, get_global_transform() * nm.xform); NavigationServer3D::get_singleton()->region_set_map(region, get_world_3d()->get_navigation_map()); nm.region = region; } |