فهرست منبع

Fix "Create Trimesh Collision Sibling" transform

hoontee 5 سال پیش
والد
کامیت
3cbd626328
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  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();