summaryrefslogtreecommitdiff
path: root/modules/gdnavigation
diff options
context:
space:
mode:
authorMarcel Admiraal <madmiraal@users.noreply.github.com>2020-12-07 17:52:11 +0000
committerMarcel Admiraal <madmiraal@users.noreply.github.com>2020-12-08 11:58:21 +0000
commit43c910680620dd4c8b91bd96e4aa13cc98547def (patch)
tree7a0e50737d430d7a3ff3f8f036e752012b4c2e11 /modules/gdnavigation
parentd5d99aaed6fc2d852491f3c133eacb762656ac4c (diff)
Use box size instead of extents for Shape dimensions
Diffstat (limited to 'modules/gdnavigation')
-rw-r--r--modules/gdnavigation/navigation_mesh_generator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdnavigation/navigation_mesh_generator.cpp b/modules/gdnavigation/navigation_mesh_generator.cpp
index 3310123ca9..5ac153d077 100644
--- a/modules/gdnavigation/navigation_mesh_generator.cpp
+++ b/modules/gdnavigation/navigation_mesh_generator.cpp
@@ -178,7 +178,7 @@ void NavigationMeshGenerator::_parse_geometry(Transform p_accumulated_transform,
if (box) {
Ref<BoxMesh> box_mesh;
box_mesh.instance();
- box_mesh->set_size(box->get_extents() * 2.0);
+ box_mesh->set_size(box->get_size());
mesh = box_mesh;
}