Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/cloth.c
| Show First 20 Lines • Show All 279 Lines • ▼ Show 20 Lines | for (i = 0; i < clmd->clothObject->mvert_num; i++, verts++) { | ||||
| copy_v3_v3(verts->xold, verts->xconst); | copy_v3_v3(verts->xold, verts->xconst); | ||||
| copy_v3_v3(verts->txold, verts->x); | copy_v3_v3(verts->txold, verts->x); | ||||
| /* Get the current position. */ | /* Get the current position. */ | ||||
| copy_v3_v3(verts->xconst, mvert[i].co); | copy_v3_v3(verts->xconst, mvert[i].co); | ||||
| mul_m4_v3(ob->obmat, verts->xconst); | mul_m4_v3(ob->obmat, verts->xconst); | ||||
| } | } | ||||
| effectors = BKE_effectors_create(depsgraph, ob, NULL, clmd->sim_parms->effector_weights); | effectors = BKE_effectors_create(depsgraph, ob, NULL, clmd->sim_parms->effector_weights, false); | ||||
| if (clmd->sim_parms->flags & CLOTH_SIMSETTINGS_FLAG_DYNAMIC_BASEMESH) { | if (clmd->sim_parms->flags & CLOTH_SIMSETTINGS_FLAG_DYNAMIC_BASEMESH) { | ||||
| cloth_update_verts(ob, clmd, result); | cloth_update_verts(ob, clmd, result); | ||||
| } | } | ||||
| /* Support for dynamic vertex groups, changing from frame to frame */ | /* Support for dynamic vertex groups, changing from frame to frame */ | ||||
| cloth_apply_vgroup(clmd, result); | cloth_apply_vgroup(clmd, result); | ||||
| ▲ Show 20 Lines • Show All 1,619 Lines • Show Last 20 Lines | |||||