Explorar o código

Copy transform when creating convex sibling

checkerWoho %!s(int64=6) %!d(string=hai) anos
pai
achega
ec274eeeff
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      editor/plugins/mesh_instance_editor_plugin.cpp

+ 1 - 0
editor/plugins/mesh_instance_editor_plugin.cpp

@@ -180,6 +180,7 @@ void MeshInstanceEditor::_menu_option(int p_option) {
 
 
 				CollisionShape *cshape = memnew(CollisionShape);
 				CollisionShape *cshape = memnew(CollisionShape);
 				cshape->set_shape(shapes[i]);
 				cshape->set_shape(shapes[i]);
+				cshape->set_transform(node->get_transform());
 
 
 				Node *owner = node->get_owner();
 				Node *owner = node->get_owner();