Переглянути джерело

Merge pull request #2536 from thomasbiang/fix_export_group_as_bone

Fix Issue: group node in fbx being exported as bone node
Kim Kulling 6 роки тому
батько
коміт
42f07c8bbc
1 змінених файлів з 3 додано та 1 видалено
  1. 3 1
      code/FBX/FBXExporter.cpp

+ 3 - 1
code/FBX/FBXExporter.cpp

@@ -1852,8 +1852,10 @@ void FBXExporter::WriteObjects ()
             // 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_custom = mProperties->GetPropertyFloat("BINDPOSE_EPSILON", -1);
-            if(epsilon_custom > 0)
+            if(epsilon_custom > 0) {
                 epsilon = epsilon_custom;
+            }
+            
             bool bone_xform_okay = true;
             if (b && ! tr.Equal(b->mOffsetMatrix, epsilon)) {
                 not_in_bind_pose.insert(b);