diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-03-06 09:30:05 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-03-06 09:30:05 +0300 |
commit | 2f21dbf38baec8b233e59523272f9aeaab3ef9d0 (patch) | |
tree | d19923245b5adf489ebe018fdb7e1ccea4c5385b /source | |
parent | a9b7d5e4e8e6484b8046470a9dc77b4c8267c1fa (diff) |
Cleanup: unused warnings
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/collision.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/source/blender/blenkernel/intern/collision.c b/source/blender/blenkernel/intern/collision.c index 5266c5b323d..6b8eac44dfa 100644 --- a/source/blender/blenkernel/intern/collision.c +++ b/source/blender/blenkernel/intern/collision.c @@ -947,7 +947,8 @@ static bool cloth_points_collision_response_static(ClothModifierData *clmd, Coll float inv_dt = 1.0f / dt; Cloth *cloth1 = clmd->clothObject; - float w1, w2, u1, u2, u3; + // float w1, w2; + float u1, u2, u3; float v1[3], v2_old[3], v2_new[3], v_rel_old[3], v_rel_new[3]; float epsilon2 = BLI_bvhtree_getepsilon ( collmd->bvhtree ); @@ -966,8 +967,8 @@ static bool cloth_points_collision_response_static(ClothModifierData *clmd, Coll continue; /* compute barycentric coordinates for both collision points */ - w1 = 1.0f - collpair->time; - w2 = collpair->time; + // w1 = 1.0f - collpair->time; + // w2 = collpair->time; /* was: txold */ collision_compute_barycentric ( collpair->pb, @@ -1107,7 +1108,7 @@ static CollPair *cloth_point_collpair(float p1[3], float p2[3], MVert *mverts, i int index_cloth, int index_coll, float epsilon, CollPair *collpair) { float *co1 = mverts[bp1].co, *co2 = mverts[bp2].co, *co3 = mverts[bp3].co; - float lambda, distance1, distance2; + float lambda /*, distance1 */, distance2; float facenor[3], v1p1[3], v1p2[3]; float w[4]; @@ -1115,7 +1116,7 @@ static CollPair *cloth_point_collpair(float p1[3], float p2[3], MVert *mverts, i return collpair; sub_v3_v3v3(v1p1, p1, co1); - distance1 = dot_v3v3(v1p1, facenor); +// distance1 = dot_v3v3(v1p1, facenor); sub_v3_v3v3(v1p2, p2, co1); distance2 = dot_v3v3(v1p2, facenor); // if (distance2 > epsilon || (distance1 < 0.0f && distance2 < 0.0f)) |