Skip to content

Commit

Permalink
Fixed #12
Browse files Browse the repository at this point in the history
  • Loading branch information
Siccity committed Mar 31, 2019
1 parent 5afcf9d commit 7b75eb5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Scripts/GLTFAnimation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public override void Load() {
for (int k = 0; k < keyframeInput.Length; k++) {
posX.AddKey(keyframeInput[k], pos[k].x);
posY.AddKey(keyframeInput[k], pos[k].y);
posZ.AddKey(keyframeInput[k], pos[k].z);
posZ.AddKey(keyframeInput[k], -pos[k].z);
}
Clip.SetCurve(relativePath, typeof(Transform), "localPosition.x", posX);
Clip.SetCurve(relativePath, typeof(Transform), "localPosition.y", posY);
Expand All @@ -97,8 +97,8 @@ public override void Load() {
for (int k = 0; k < keyframeInput.Length; k++) {
rotX.AddKey(keyframeInput[k], rot[k].x);
rotY.AddKey(keyframeInput[k], rot[k].y);
rotZ.AddKey(keyframeInput[k], rot[k].z);
rotW.AddKey(keyframeInput[k], rot[k].w);
rotZ.AddKey(keyframeInput[k], -rot[k].z);
rotW.AddKey(keyframeInput[k], -rot[k].w);
}
Clip.SetCurve(relativePath, typeof(Transform), "localRotation.x", rotX);
Clip.SetCurve(relativePath, typeof(Transform), "localRotation.y", rotY);
Expand Down

0 comments on commit 7b75eb5

Please sign in to comment.