From d38ac54d6be0cb7e0f543c6cb996d01fd372b28e Mon Sep 17 00:00:00 2001 From: Philipp Oeser Date: Fri, 9 Feb 2024 10:42:15 +0100 Subject: [PATCH] Fix: Cloth could ignore "Shear" vertexgroup Oversight in e3d31b8dfbdc While most situations would have other vertexgroups set anyways (so this probably wasnt noticed, it was only ignored if it is the only vertexgroup used), at least theoretically it could happen that `cloth_uses_vgroup` would return false even then `vgroup_shear` is set (thus skipping actually setting these weights later). --- source/blender/blenkernel/intern/cloth.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/blender/blenkernel/intern/cloth.cc b/source/blender/blenkernel/intern/cloth.cc index 199e67634d6..68be8a1c45d 100644 --- a/source/blender/blenkernel/intern/cloth.cc +++ b/source/blender/blenkernel/intern/cloth.cc @@ -593,7 +593,8 @@ int cloth_uses_vgroup(ClothModifierData *clmd) (clmd->coll_parms->vgroup_objcol > 0)) || (clmd->sim_parms->vgroup_pressure > 0) || (clmd->sim_parms->vgroup_struct > 0) || (clmd->sim_parms->vgroup_bend > 0) || (clmd->sim_parms->vgroup_shrink > 0) || - (clmd->sim_parms->vgroup_intern > 0) || (clmd->sim_parms->vgroup_mass > 0)); + (clmd->sim_parms->vgroup_intern > 0) || (clmd->sim_parms->vgroup_mass > 0) || + (clmd->sim_parms->vgroup_shear > 0)); } /** -- 2.30.2