From 2488cc631977b247b5d39fe19da0e09b674e9295 Mon Sep 17 00:00:00 2001 From: Godzil Date: Fri, 6 Mar 2020 09:39:33 +0000 Subject: [PATCH] Seems long ago I forgot to update/correct the local boudingbox calculation for triangles.... --- source/shapes/triangle.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/shapes/triangle.cpp b/source/shapes/triangle.cpp index e286b50..0e31514 100644 --- a/source/shapes/triangle.cpp +++ b/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; }