From fc51f9767aef5e1c8f5383900492856d6ed97116 Mon Sep 17 00:00:00 2001 From: DavidWyand-GG Date: Wed, 6 Nov 2013 14:17:44 -0500 Subject: [PATCH] Fix for RectF::intersectTriangle() Reported in this issue: https://github.com/GarageGames/Torque3D/issues/512 --- Engine/source/math/mRect.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Engine/source/math/mRect.h b/Engine/source/math/mRect.h index 8b4fb6249..61985343b 100644 --- a/Engine/source/math/mRect.h +++ b/Engine/source/math/mRect.h @@ -405,7 +405,7 @@ inline bool RectF::intersectTriangle(const Point2F &a, const Point2F &b, const P // 3 point plus 12 edge tests. // Check each triangle point to see if it's in us. - if(contains(a) || contains(b) || contains(b)) + if(contains(a) || contains(b) || contains(c)) return true; // Check a-b against the rect.