Skip to content

Commit

Permalink
Merge pull request #84165 from clayjohn/softbody-bug
Browse files Browse the repository at this point in the history
Ensure SoftBody3D does not use compressed mesh format.
  • Loading branch information
akien-mga committed Oct 30, 2023
2 parents 6fe7a5e + 1d95541 commit 5eb5a99
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scene/3d/soft_body_3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 5eb5a99

Please sign in to comment.