Fix brush selection.

The great cleanup caused a few vital returns to disappear (they probably
went to the same place a lot of my lego did).
This commit is contained in:
Bill Currie 2010-10-10 13:07:28 +09:00
parent 29d544d766
commit 8f92076b32
1 changed files with 3 additions and 0 deletions

View File

@ -989,6 +989,7 @@ hitByRay::::
if (regioned) {
*time = -1;
*face = -1;
return;
}
[self clipRay: p1 : p2 : frontpoint : &frontface : backpoint : &backface];
@ -997,11 +998,13 @@ hitByRay::::
// entire ray is inside the brush, select first face
*time = 0;
*face = 0;
return;
}
if (frontface < 0) { // ray started inside the polytope, don't select it
*time = -1;
*face = -1;
return;
}
VectorSubtract (p2, p1, dir);