Browse Source

Merge pull request #42038 from hoontee/_42027

Fix "Create Trimesh Collision Sibling" transform
Rémi Verschelde 5 năm trước cách đây
mục cha
commit
45f4d8fc92
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      editor/plugins/mesh_instance_3d_editor_plugin.cpp

+ 1 - 0
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();