Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Tönne <lukas.toenne@gmail.com>2014-09-04 17:06:15 +0400
committerLukas Tönne <lukas.toenne@gmail.com>2015-01-20 11:29:57 +0300
commit8ec4c31d9c454831d14b1be410fa765df4d96ca4 (patch)
tree2ef8658ac08907e101dca2758d0c5a9509ea6a5d /source/blender/blenkernel/intern/collision.c
parent4bfd3c8f0cb0b52b8748a07b3e8695a2c3063c64 (diff)
Disabled collision culling on the inside of the collider faces for now,
this seems to remove too many contact points somehow ...
Diffstat (limited to 'source/blender/blenkernel/intern/collision.c')
-rw-r--r--source/blender/blenkernel/intern/collision.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/collision.c b/source/blender/blenkernel/intern/collision.c
index 1e742d581e7..b13eb9d4574 100644
--- a/source/blender/blenkernel/intern/collision.c
+++ b/source/blender/blenkernel/intern/collision.c
@@ -1228,7 +1228,8 @@ static CollPair *cloth_point_collpair(float p1[3], float p2[3], MVert *mverts, i
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))
+// if (distance2 > epsilon || (distance1 < 0.0f && distance2 < 0.0f))
+ if (distance2 > epsilon)
return collpair;
collpair->face1 = index_cloth; /* XXX actually not a face, but equivalent index for point */