Pārlūkot izejas kodu

Update FBXExporter.cpp

small reformatting improvement
Kim Kulling 6 gadi atpakaļ
vecāks
revīzija
73914cd7e2
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. 3 1
      code/FBX/FBXExporter.cpp

+ 3 - 1
code/FBX/FBXExporter.cpp

@@ -1842,8 +1842,10 @@ void FBXExporter::WriteObjects ()
             // if it's not the same, the skeleton isn't in the bind pose.
             // if it's not the same, the skeleton isn't in the bind pose.
             float epsilon = 1e-4f; // some error is to be expected
             float epsilon = 1e-4f; // some error is to be expected
             float epsilon_custom = mProperties->GetPropertyFloat("BINDPOSE_EPSILON", -1);
             float epsilon_custom = mProperties->GetPropertyFloat("BINDPOSE_EPSILON", -1);
-            if(epsilon_custom > 0)
+            if(epsilon_custom > 0) {
                 epsilon = epsilon_custom;
                 epsilon = epsilon_custom;
+            }
+            
             bool bone_xform_okay = true;
             bool bone_xform_okay = true;
             if (b && ! tr.Equal(b->mOffsetMatrix, epsilon)) {
             if (b && ! tr.Equal(b->mOffsetMatrix, epsilon)) {
                 not_in_bind_pose.insert(b);
                 not_in_bind_pose.insert(b);