+ if ( dvert->dw[j].def_nr == (clmd->sim_parms->vgroup_shrink-1)) {
+ verts->shrink_factor = clmd->sim_parms->shrink_min*(1.0f-dvert->dw[j].weight)+clmd->sim_parms->shrink_max*dvert->dw [j].weight; // linear interpolation between min and max shrink factor based on weight
+ RNA_def_property_ui_text(prop, "Shrink Factor Min", "min amount to shrink cloth by 0.0 (no shrink) - 1.0 (shrink to nothing). negative values will expand the cloth");
+ RNA_def_property_ui_text(prop, "Shrink Factor Max", "max amount to shrink cloth by 0.0 (no shrink) - 1.0 (shrink to nothing). negative values will expand the cloth");