diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-09-14 14:34:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-14 14:34:22 +0200 |
commit | e13d8eda1b77fd55a711ed06848de6a369905d0c (patch) | |
tree | b4a33110c44c2e712952a0eb85279f2c2c80a5b8 /editor/plugins/mesh_instance_3d_editor_plugin.cpp | |
parent | 0f7fe554fb65a7a7f319d1d6f51bb6060f99f246 (diff) | |
parent | e3a06c3a9ed8545e1ab5b807d106ebfb8a15e995 (diff) | |
download | redot-engine-e13d8eda1b77fd55a711ed06848de6a369905d0c.tar.gz |
Merge pull request #52266 from AndreaCatania/coll
Diffstat (limited to 'editor/plugins/mesh_instance_3d_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/mesh_instance_3d_editor_plugin.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/plugins/mesh_instance_3d_editor_plugin.cpp b/editor/plugins/mesh_instance_3d_editor_plugin.cpp index 9a2b222f21..574d3ef27e 100644 --- a/editor/plugins/mesh_instance_3d_editor_plugin.cpp +++ b/editor/plugins/mesh_instance_3d_editor_plugin.cpp @@ -202,7 +202,8 @@ void MeshInstance3DEditor::_menu_option(int p_option) { return; } - Vector<Ref<Shape3D>> shapes = mesh->convex_decompose(); + Mesh::ConvexDecompositionSettings settings; + Vector<Ref<Shape3D>> shapes = mesh->convex_decompose(settings); if (!shapes.size()) { err_dialog->set_text(TTR("Couldn't create any collision shapes.")); |