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 /editor/import | |
parent | d5d99aaed6fc2d852491f3c133eacb762656ac4c (diff) |
Use box size instead of extents for Shape dimensions
Diffstat (limited to 'editor/import')
-rw-r--r-- | editor/import/resource_importer_scene.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/import/resource_importer_scene.cpp b/editor/import/resource_importer_scene.cpp index fc4f673ec4..1f059cf19b 100644 --- a/editor/import/resource_importer_scene.cpp +++ b/editor/import/resource_importer_scene.cpp @@ -429,7 +429,7 @@ Node *ResourceImporterScene::_fix_node(Node *p_node, Node *p_root, Map<Ref<Mesh> CollisionShape3D *colshape = memnew(CollisionShape3D); if (empty_draw_type == "CUBE") { BoxShape3D *boxShape = memnew(BoxShape3D); - boxShape->set_extents(Vector3(1, 1, 1)); + boxShape->set_size(Vector3(2, 2, 2)); colshape->set_shape(boxShape); colshape->set_name("BoxShape3D"); } else if (empty_draw_type == "SINGLE_ARROW") { |