Compile fix - "spf" was undefined

This commit is contained in:
Joshua Leung 2012-06-02 22:47:33 +00:00
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) {