summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-09-14 09:19:42 +0200
committerGitHub <noreply@github.com>2020-09-14 09:19:42 +0200
commit45f4d8fc9295f8fafd7879f4d3f36cd8cb871608 (patch)
treee6ca0d4e41ff52e881194f4af721df11fb63a7f2 /editor
parent95314e3568c4df5dd98947a9c3de38f28db60e79 (diff)
parent3cbd626328c84bce645db55062aacd3a334a6973 (diff)
Merge pull request #42038 from hoontee/_42027
Fix "Create Trimesh Collision Sibling" transform
Diffstat (limited to 'editor')
-rw-r--r--editor/plugins/mesh_instance_3d_editor_plugin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/plugins/mesh_instance_3d_editor_plugin.cpp b/editor/plugins/mesh_instance_3d_editor_plugin.cpp
index 1b65987af0..5b241deab0 100644
--- a/editor/plugins/mesh_instance_3d_editor_plugin.cpp
+++ b/editor/plugins/mesh_instance_3d_editor_plugin.cpp
@@ -138,6 +138,7 @@ void MeshInstance3DEditor::_menu_option(int p_option) {
CollisionShape3D *cshape = memnew(CollisionShape3D);
cshape->set_shape(shape);
+ cshape->set_transform(node->get_transform());
Node *owner = node->get_owner();