Pārlūkot izejas kodu

Fix for RectF::intersectTriangle()

Reported in this issue:
https://github.com/GarageGames/Torque3D/issues/512
DavidWyand-GG 12 gadi atpakaļ
vecāks
revīzija
fc51f9767a
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      Engine/source/math/mRect.h

+ 1 - 1
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.
    // 3 point plus 12 edge tests.
 
 
    // Check each triangle point to see if it's in us.
    // 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;
       return true;
 
 
    // Check a-b against the rect.
    // Check a-b against the rect.