Kaynağa Gözat

Merge pull request #3175 from hoshiryu/fix_fbx_rotation

Fix fbx rotation ;
Kim Kulling 5 yıl önce
ebeveyn
işleme
578dc09810
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  1. 1 0
      code/AssetLib/FBX/FBXConverter.cpp

+ 1 - 0
code/AssetLib/FBX/FBXConverter.cpp

@@ -3315,6 +3315,7 @@ void FBXConverter::InterpolateKeys(aiQuatKey *valOut, const KeyTimeList &keys, c
         // http://www.3dkingdoms.com/weekly/weekly.php?a=36
         if (quat.x * lastq.x + quat.y * lastq.y + quat.z * lastq.z + quat.w * lastq.w < 0) {
             quat.Conjugate();
+            quat.w = -quat.w;
         }
         lastq = quat;