Fix #113803: some cloth weight groups change on reordering #114032

Merged
Philipp Oeser merged 1 commits from pioverfour/blender:dp_fix_113803 into blender-v4.1-release 2024-02-09 15:39:18 +01:00

1 Commits

Author SHA1 Message Date
Damien Picard a8710d3040 Fix #113803: some cloth weight groups change on reordering
buildbot/vexp-code-patch-linux-x86_64 Build done. Details
buildbot/vexp-code-patch-lint Build done. Details
buildbot/vexp-code-patch-windows-amd64 Build done. Details
buildbot/vexp-code-patch-darwin-x86_64 Build done. Details
buildbot/vexp-code-patch-darwin-arm64 Build done. Details
buildbot/vexp-code-patch-coordinator Build done. Details
When reordering vertex groups on a mesh, some cloth properties would
get affected by another group, because they were based on group index
instead of name.

This issue was already handled by
`BKE_object_defgroup_remap_update_users()` for some properties, but
not all.

This commit extends the function for missing properties: Shrinking,
Shear, Internal Springs, Pressure, Self Collisions and Object
Collisions.
2024-02-08 18:35:39 +01:00