From bb8d9362461813ccba16291cfba8ac225e470cd9 Mon Sep 17 00:00:00 2001 From: Ilya Smelkov Date: Sun, 2 Aug 2015 19:45:39 +0300 Subject: [PATCH] Fix volume calculation --- code/FixNormalsStep.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/FixNormalsStep.cpp b/code/FixNormalsStep.cpp index 426e7fbeb..5fe139e4b 100644 --- a/code/FixNormalsStep.cpp +++ b/code/FixNormalsStep.cpp @@ -152,8 +152,8 @@ bool FixInfacingNormalsProcess::ProcessMesh( aiMesh* pcMesh, unsigned int index) if (fDelta1_z < 0.05f * sqrtf( fDelta1_y * fDelta1_x ))return false; // now compare the volumes of the bounding boxes - if (std::fabs(fDelta0_x * fDelta1_yz) < - std::fabs(fDelta1_x * fDelta1_y * fDelta1_z)) + if (std::fabs(fDelta0_x * fDelta0_y * fDelta0_z) < + std::fabs(fDelta1_x * fDelta1_yz)) { if (!DefaultLogger::isNullLogger()) {