Explorar o código

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

Godzil %!s(int64=4) %!d(string=hai) anos
pai
achega
2488cc6319
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      source/shapes/triangle.cpp

+ 3 - 3
source/shapes/triangle.cpp

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