summaryrefslogtreecommitdiffstats
path: root/editor/plugins/mesh_instance_3d_editor_plugin.cpp
diff options
context:
space:
mode:
authorCamille Mohr-Daurat <pouleyKetchoup@gmail.com>2021-08-30 07:25:51 -0700
committerGitHub <noreply@github.com>2021-08-30 07:25:51 -0700
commitb60a51f0232246be0c8a0544253336e34d346724 (patch)
treeabcf29f8c557b9561fa74fb3ad5cc4d811472f8a /editor/plugins/mesh_instance_3d_editor_plugin.cpp
parent503244d452a8603e05b72e7e018fdc2f9a8bedf2 (diff)
parent2d2d24a538bf958acd44c30e9291fa54c8d77164 (diff)
downloadredot-engine-b60a51f0232246be0c8a0544253336e34d346724.tar.gz
Merge pull request #51985 from AndreaCatania/coll
Improve collision generation usability in the new 3D scene import workflow.
Diffstat (limited to 'editor/plugins/mesh_instance_3d_editor_plugin.cpp')
-rw-r--r--editor/plugins/mesh_instance_3d_editor_plugin.cpp3
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."));