From cac8215cadb03546ca826e76ed933bf89711bcdf Mon Sep 17 00:00:00 2001 From: Daniel Genrich Date: Wed, 30 Jan 2008 22:00:12 +0000 Subject: [PATCH] Cloth bugfix: enable stiffness scaling again even if cloth is not pinned --- source/blender/blenkernel/intern/modifier.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/source/blender/blenkernel/intern/modifier.c b/source/blender/blenkernel/intern/modifier.c index 88123098b98..f5775211d66 100644 --- a/source/blender/blenkernel/intern/modifier.c +++ b/source/blender/blenkernel/intern/modifier.c @@ -5016,8 +5016,11 @@ CustomDataMask clothModifier_requiredDataMask(ModifierData *md) CustomDataMask dataMask = 0; /* ask for vertexgroups if we need them */ - if(clmd->sim_parms->flags & CLOTH_SIMSETTINGS_FLAG_GOAL) - if (clmd->sim_parms->vgroup_mass > 0) + if (((clmd->sim_parms->flags & CLOTH_SIMSETTINGS_FLAG_SCALING ) || + (clmd->sim_parms->flags & CLOTH_SIMSETTINGS_FLAG_GOAL )) && + ((clmd->sim_parms->vgroup_mass>0) || + (clmd->sim_parms->vgroup_struct>0)|| + (clmd->sim_parms->vgroup_bend>0))) dataMask |= (1 << CD_MDEFORMVERT); return dataMask;