瀏覽代碼

Merge pull request #33270 from norkn/fix-issue-27256

Copy transform when creating convex sibling
Rémi Verschelde 6 年之前
父節點
當前提交
306c13a210
共有 1 個文件被更改,包括 1 次插入0 次删除
  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);
 				cshape->set_shape(shapes[i]);
+				cshape->set_transform(node->get_transform());
 
 				Node *owner = node->get_owner();