Previously, the armature modifier retrieved the list of available vertex group names from the original mesh. However, that list may contain different vertex groups then are actually on the mesh that is being deformed. This patch makes it so that the vertex group list (`defbase`) is taken directly from the mesh-to-deform if possible. Pull Request: https://projects.blender.org/blender/blender/pulls/139734