mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-26 22:40:27 +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++;
|
||||
}
|
||||
|
||||
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)
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue