diff --git a/source/blender/editors/mesh/mesh_join.cc b/source/blender/editors/mesh/mesh_join.cc index 6b06110a57b..8ebf92c2e67 100644 --- a/source/blender/editors/mesh/mesh_join.cc +++ b/source/blender/editors/mesh/mesh_join.cc @@ -85,7 +85,7 @@ static VectorSet join_vertex_groups(const Span obje continue; } Vector index_map; - LISTBASE_FOREACH (const bDeformGroup *, dg, &dst_mesh.vertex_group_names) { + LISTBASE_FOREACH (const bDeformGroup *, dg, &src_mesh.vertex_group_names) { index_map.append(vertex_group_names.index_of_as(dg->name)); } for (const int vert : src_dverts.index_range()) {