1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-24 15:26:15 +00:00

Merge pull request #44183 from madmiraal/box_shape-size

Use a size Vector for adjusting the size of Rectangles and Boxes
This commit is contained in:
Rémi Verschelde
2020-12-28 16:06:50 +01:00
committed by GitHub
16 changed files with 90 additions and 177 deletions

View File

@@ -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;
}