浏览代码

Merge pull request #618 from triplepointfive/fix_normals

Fix volume calculation
Alexander Gessler 10 年之前
父节点
当前提交
596c3bb4f9
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      code/FixNormalsStep.cpp

+ 2 - 2
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())
         {