A few more curve fixes

This commit is contained in:
KillzXGaming 2019-07-14 09:26:18 -04:00
parent d2598a1872
commit 1b7b74dc6f
5 changed files with 7 additions and 0 deletions

Binary file not shown.

View file

@ -157,6 +157,13 @@ namespace FirstPlugin
i++;
}
curve.EndFrame = curve.Frames.Max();
if (curve.Keys.Length > 1)
{
curve.Delta = curve.Keys[curve.Keys.Length - 1,0] - curve.Keys[0, 0];
}
if (MaxFrame < byte.MaxValue)
curve.FrameType = AnimCurveFrameType.Byte;
else if (MaxFrame < ushort.MaxValue)