summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2019-11-02 19:28:59 +0100
committerGitHub <noreply@github.com>2019-11-02 19:28:59 +0100
commit306c13a210a54d69f2ef008e04281305c8a6d9c1 (patch)
treece8833d5581d1b0581d3e812dfba98f18f89e1b3
parentd89f24b6c9c7b97c6a6c53cb66b7be50afc440a4 (diff)
parentec274eeeffad81805855096d02aa625940aa20d2 (diff)
Merge pull request #33270 from norkn/fix-issue-27256
Copy transform when creating convex sibling
-rw-r--r--editor/plugins/mesh_instance_editor_plugin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/plugins/mesh_instance_editor_plugin.cpp b/editor/plugins/mesh_instance_editor_plugin.cpp
index 635b934333..22df8fd8f4 100644
--- a/editor/plugins/mesh_instance_editor_plugin.cpp
+++ b/editor/plugins/mesh_instance_editor_plugin.cpp
@@ -180,6 +180,7 @@ void MeshInstanceEditor::_menu_option(int p_option) {
CollisionShape *cshape = memnew(CollisionShape);
cshape->set_shape(shapes[i]);
+ cshape->set_transform(node->get_transform());
Node *owner = node->get_owner();