Преглед на файлове

Fix "Create Trimesh Collision Sibling" transform

(cherry picked from commit 3cbd626328c84bce645db55062aacd3a334a6973)
hoontee преди 5 години
родител
ревизия
b626f16212
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      editor/plugins/mesh_instance_editor_plugin.cpp

+ 1 - 0
editor/plugins/mesh_instance_editor_plugin.cpp

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