diff options
author | Marcel Admiraal <madmiraal@users.noreply.github.com> | 2020-12-07 17:52:11 +0000 |
---|---|---|
committer | Marcel Admiraal <madmiraal@users.noreply.github.com> | 2020-12-08 11:58:21 +0000 |
commit | 43c910680620dd4c8b91bd96e4aa13cc98547def (patch) | |
tree | 7a0e50737d430d7a3ff3f8f036e752012b4c2e11 /modules/gdnavigation | |
parent | d5d99aaed6fc2d852491f3c133eacb762656ac4c (diff) |
Use box size instead of extents for Shape dimensions
Diffstat (limited to 'modules/gdnavigation')
-rw-r--r-- | modules/gdnavigation/navigation_mesh_generator.cpp | 2 |
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; } |