mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2025-02-16 22:08:26 +00:00
A few more curve fixes
This commit is contained in:
parent
d2598a1872
commit
1b7b74dc6f
5 changed files with 7 additions and 0 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -157,6 +157,13 @@ namespace FirstPlugin
|
||||||
i++;
|
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)
|
if (MaxFrame < byte.MaxValue)
|
||||||
curve.FrameType = AnimCurveFrameType.Byte;
|
curve.FrameType = AnimCurveFrameType.Byte;
|
||||||
else if (MaxFrame < ushort.MaxValue)
|
else if (MaxFrame < ushort.MaxValue)
|
||||||
|
|
Binary file not shown.
Loading…
Add table
Reference in a new issue