diff options
Diffstat (limited to 'source/blender/blenkernel/intern/collision.c')
-rw-r--r-- | source/blender/blenkernel/intern/collision.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/collision.c b/source/blender/blenkernel/intern/collision.c index 4bfe3b1c0bd..91a09bb8554 100644 --- a/source/blender/blenkernel/intern/collision.c +++ b/source/blender/blenkernel/intern/collision.c @@ -164,6 +164,9 @@ Collision modifier code end // w3 is not perfect static void collision_compute_barycentric ( float pv[3], float p1[3], float p2[3], float p3[3], float *w1, float *w2, float *w3 ) { + /* dot_v3v3 */ +#define INPR(v1, v2) ( (v1)[0] * (v2)[0] + (v1)[1] * (v2)[1] + (v1)[2] * (v2)[2]) + double tempV1[3], tempV2[3], tempV4[3]; double a, b, c, d, e, f; @@ -195,6 +198,8 @@ static void collision_compute_barycentric ( float pv[3], float p1[3], float p2[3 w2[0] = 0; w3[0] = 1.0f - w1[0] - w2[0]; + +#undef INPR } #ifdef __GNUC__ |