*Bug fix on finding hit on neighbour face (think this is the last know bug)

This bug fix makes the "non-smoothed" faces appear again (just like they do in 2.49 and blender2.5)
Meaning the "detect neighbour faces" isn't working 100%.
This commit is contained in:
2009-08-13 12:23:21 +00:00
parent c101d58d42
commit 7050a4a6a2

View File

@@ -306,7 +306,7 @@ static int intersect_rayface(RayFace *face, Isect *is)
|| a->v1==b->v2 || a->v2==b->v2 || a->v3==b->v2 || a->v4==b->v2
|| a->v1==b->v3 || a->v2==b->v3 || a->v3==b->v3 || a->v4==b->v3
|| (b->v4 && (a->v1==b->v4 || a->v2==b->v4 || a->v3==b->v4 || a->v4==b->v4)))
if(intersection2((VlakRen*)b, -r0, -r1, -r2, is->start[0], is->start[1], is->start[2]))
if(!intersection2((VlakRen*)a, -r0, -r1, -r2, is->start[0], is->start[1], is->start[2]))
{
return 0;
}