浏览代码

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();