summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcheckerWoho <malsch.felix@web.de>2019-11-02 15:08:50 +0100
committercheckerWoho <malsch.felix@web.de>2019-11-02 15:08:50 +0100
commitec274eeeffad81805855096d02aa625940aa20d2 (patch)
tree102de73f1646aadb50c6da72bdd3c7f9956527c5
parent4569f5ec82964e0abe543337c9537e0af9164c11 (diff)
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();