Commit: 6cb8bd0a1cdeca0a2586688c5867d9b3e64e7d56
Author: Bastien Montagne
Date: Fri Jul 26 14:44:14 2019 +0200
Branches: master
https://developer.blender.org/rB6cb8bd0a1cdeca0a2586688c5867d9b3e64e7d56
Modifiers: Update LaplacianDeform error message about vgroups.
Vgroup might be also 'invalid' because it is empty (and no other vgroup
with vertices currently exists on that mesh).
Related to T67385.
===================================================================
M source/blender/modifiers/intern/MOD_laplaciandeform.c
===================================================================
diff --git a/source/blender/modifiers/intern/MOD_laplaciandeform.c
b/source/blender/modifiers/intern/MOD_laplaciandeform.c
index e27d2786751..abb4c5cae32 100644
--- a/source/blender/modifiers/intern/MOD_laplaciandeform.c
+++ b/source/blender/modifiers/intern/MOD_laplaciandeform.c
@@ -671,8 +671,9 @@ static void LaplacianDeformModifier_do(
&lmd->modifier, "Edges changed from %d to %d", sys->total_edges,
mesh->totedge);
}
else if (sysdif == LAPDEFORM_SYSTEM_CHANGE_NOT_VALID_GROUP) {
- modifier_setError(
- &lmd->modifier, "Vertex group '%s' is not valid",
sys->anchor_grp_name);
+ modifier_setError(&lmd->modifier,
+ "Vertex group '%s' is not valid, or maybe empty",
+ sys->anchor_grp_name);
}
}
}
@@ -683,7 +684,8 @@ static void LaplacianDeformModifier_do(
}
else {
if (!isValidVertexGroup(lmd, ob, mesh)) {
- modifier_setError(&lmd->modifier, "Vertex group '%s' is not valid",
lmd->anchor_grp_name);
+ modifier_setError(
+ &lmd->modifier, "Vertex group '%s' is not valid, or maybe empty",
lmd->anchor_grp_name);
lmd->flag &= ~MOD_LAPLACIANDEFORM_BIND;
}
else if (lmd->total_verts > 0 && lmd->total_verts == numVerts) {
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs