Browse Source

Seems long ago I forgot to update/correct the local boudingbox calculation for triangles....

Godzil 4 years ago
parent
commit
2488cc6319
1 changed files with 3 additions and 3 deletions
  1. 3 3
      source/shapes/triangle.cpp

+ 3 - 3
source/shapes/triangle.cpp

@@ -63,9 +63,9 @@ BoundingBox Triangle::getLocalBounds()
 {
     BoundingBox ret;
 
-    ret | this->objectToWorld(p1);
-    ret | this->objectToWorld(p2);
-    ret | this->objectToWorld(p3);
+    ret | p1;
+    ret | p2;
+    ret | p3;
 
     return ret;
 }