Browse Source

Ensure SoftBody3D does not use compressed mesh format.

clayjohn 2 năm trước cách đây
mục cha
commit
1d9554103c
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      scene/3d/soft_body_3d.cpp

+ 1 - 0
scene/3d/soft_body_3d.cpp

@@ -471,6 +471,7 @@ void SoftBody3D::_become_mesh_owner() {
 	uint32_t surface_format = mesh->surface_get_format(0);
 	uint32_t surface_format = mesh->surface_get_format(0);
 
 
 	surface_format |= Mesh::ARRAY_FLAG_USE_DYNAMIC_UPDATE;
 	surface_format |= Mesh::ARRAY_FLAG_USE_DYNAMIC_UPDATE;
+	surface_format &= ~Mesh::ARRAY_FLAG_COMPRESS_ATTRIBUTES;
 
 
 	Ref<ArrayMesh> soft_mesh;
 	Ref<ArrayMesh> soft_mesh;
 	soft_mesh.instantiate();
 	soft_mesh.instantiate();