소스 검색

OgreImporter: fix relative to absolute transform and Jack's walk animation

1vanK 9 년 전
부모
커밋
49a25f787c
3개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Source/Tools/OgreImporter/OgreImporter.cpp
  2. BIN
      bin/Data/Models/Jack.mdl
  3. BIN
      bin/Data/Models/Jack_Walk.ani

+ 1 - 1
Source/Tools/OgreImporter/OgreImporter.cpp

@@ -999,7 +999,7 @@ void WriteOutput(const String& outputFileName, bool exportAnimations, bool rotat
                         Quaternion rot(angle, axisVec);
 
                         // Transform from bind-pose relative into absolute
-                        pos = bone->bindPosition_ + bone->bindRotation_ * pos;
+                        pos = bone->bindPosition_ + pos;
                         rot = bone->bindRotation_ * rot;
 
                         newKeyFrame.time_ = keyFrame.GetFloat("time");

BIN
bin/Data/Models/Jack.mdl


BIN
bin/Data/Models/Jack_Walk.ani