1
0
mirror of synced 2025-01-19 01:14:08 +01:00

More fixes for converting

This commit is contained in:
KillzXGaming 2019-05-25 11:33:51 -04:00
parent 16ae15328d
commit d4c6ddb3da
6 changed files with 2 additions and 12 deletions

Binary file not shown.

View File

@ -298,12 +298,7 @@ namespace Bfres.Structs
curve.FrameType = (AnimCurveFrameType)curveU.FrameType;
curve.StartFrame = curveU.StartFrame;
curve.Scale = curveU.Scale;
if (curve.Offset.GetType() == typeof(float))
curve.Offset = (float)curveU.Offset;
if (curve.Offset.GetType() == typeof(uint))
curve.Offset = (uint)curveU.Offset;
if (curve.Offset.GetType() == typeof(int))
curve.Offset = (int)curveU.Offset;
curve.Offset = (float)curveU.Offset;
boneAnim.Curves.Add(curve);
}
@ -364,12 +359,7 @@ namespace Bfres.Structs
curve.FrameType = (ResU.AnimCurveFrameType)curveNX.FrameType;
curve.StartFrame = curveNX.StartFrame;
curve.Scale = curveNX.Scale;
if (curve.Offset.GetType() == typeof(float))
curve.Offset = (float)curveNX.Offset;
if (curve.Offset.GetType() == typeof(uint))
curve.Offset = (uint)curveNX.Offset;
if (curve.Offset.GetType() == typeof(int))
curve.Offset = (int)curveNX.Offset;
curve.Offset = (float)curveNX.Offset;
boneAnimU.Curves.Add(curve);
}