Page MenuHome

Versioning: fix vertex group name loss in linked duplicates.
ClosedPublic

Authored by Alexander Gavrilov (angavrilov) on Jul 18 2021, 10:51 AM.

Details

Summary

After rB3b6ee8cee708 by @Hans Goudey (HooglyBoogly) vertex groups were moved
to mesh data, and versioning code was provided to upgrade old
files. However, it fails to consider the case of linked duplicates
having different name lists, and dependent on the object order
can cause some of the names to be lost. This can even be all of
them, if there is a duplicate without any names, which can be
easily created by lazy Python code.

To fix this, change the code to use the longest available name list.

Diff Detail

Repository
rB Blender

Event Timeline

Alexander Gavrilov (angavrilov) requested review of this revision.Jul 18 2021, 10:51 AM
Alexander Gavrilov (angavrilov) created this revision.

Looks like a better way to handle this. Thanks.

This revision is now accepted and ready to land.Jul 18 2021, 3:35 PM