Fix #111933: wrong rest position #111958

Merged
Philipp Oeser merged 1 commits from JacquesLucke/blender:fix-rest-position into blender-v3.6-release 2023-09-06 13:26:43 +02:00
1 changed files with 1 additions and 0 deletions

View File

@ -659,6 +659,7 @@ static void mesh_calc_modifiers(struct Depsgraph *depsgraph,
}
MutableAttributeAccessor attributes = mesh_final->attributes_for_write();
const AttributeReader positions = attributes.lookup<float3>("position");
attributes.remove("rest_position");
if (positions) {
if (positions.sharing_info && positions.varray.is_span()) {
attributes.add<float3>("rest_position",