From 8f92076b3226b463506cab532f32572b6aa2a153 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sun, 10 Oct 2010 13:07:28 +0900 Subject: [PATCH] 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). --- tools/Forge/Bundles/MapEdit/SetBrush.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/Forge/Bundles/MapEdit/SetBrush.m b/tools/Forge/Bundles/MapEdit/SetBrush.m index ff7b4799f..e2f44f49a 100644 --- a/tools/Forge/Bundles/MapEdit/SetBrush.m +++ b/tools/Forge/Bundles/MapEdit/SetBrush.m @@ -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);