Fix #120309: Remove from Vertex Group operator broken

This check for whether there is vertex group data was mistakenly
reversed in b52a071e7a.
This commit is contained in:
Hans Goudey
2024-04-05 13:41:21 -04:00
parent 4e90501377
commit 61b28227bb

View File

@@ -169,7 +169,7 @@ bool BKE_object_defgroup_clear(Object *ob, bDeformGroup *dg, const bool use_sele
}
}
else {
if (!mesh->deform_verts().data()) {
if (mesh->deform_verts().data()) {
const bool *select_vert = (const bool *)CustomData_get_layer_named(
&mesh->vert_data, CD_PROP_BOOL, ".select_vert");
int i;