forked from bartvdbraak/blender
Compile fix - "spf" was undefined
This commit is contained in:
parent
76af5fb50d
commit
f69cec4596
@ -332,7 +332,7 @@ static int cloth_collision_response_static ( ClothModifierData *clmd, CollisionM
|
||||
// DG: this formula ineeds to be changed for this code since we apply impulses/repulses like this:
|
||||
// v += impulse; x_new = x + v;
|
||||
// We don't use dt!!
|
||||
/* float spf = (float)clmd->sim_parms->stepsPerFrame / clmd->sim_parms->timescale; */ /* XXX UNUSED */
|
||||
float spf = (float)clmd->sim_parms->stepsPerFrame / clmd->sim_parms->timescale;
|
||||
|
||||
float d = clmd->coll_parms->epsilon*8.0f/9.0f + epsilon2*8.0f/9.0f - collpair->distance;
|
||||
if ( d > ALMOST_ZERO) {
|
||||
|
Loading…
Reference in New Issue
Block a user