diff --git a/source/blender/editors/mesh/mesh_join.cc b/source/blender/editors/mesh/mesh_join.cc index ba7307bbf4d..bcba0a74717 100644 --- a/source/blender/editors/mesh/mesh_join.cc +++ b/source/blender/editors/mesh/mesh_join.cc @@ -84,7 +84,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()) {