Merge pull request #84165 from clayjohn/softbody-bug

Ensure SoftBody3D does not use compressed mesh format.
This commit is contained in:
Rémi Verschelde 2023-10-30 10:19:43 +01:00
commit 5eb5a99379
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

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