mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-23 13:03:15 +00:00
Fix not showing the last key frame in the animation editors.
This commit is contained in:
parent
3234e3a817
commit
53f37afde1
8 changed files with 4 additions and 5 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -41,7 +41,7 @@ namespace FirstPlugin.Forms
|
|||
|
||||
return;
|
||||
|
||||
for (int frame = 0; frame < fska.FrameCount; frame++)
|
||||
for (int frame = 0; frame <= fska.FrameCount; frame++)
|
||||
{
|
||||
bool IsKeyed = (boneAnim.XPOS.HasAnimation() && boneAnim.XPOS.GetKeyFrame(frame).IsKeyed ||
|
||||
boneAnim.YPOS.HasAnimation() && boneAnim.YPOS.GetKeyFrame(frame).IsKeyed ||
|
||||
|
|
|
@ -189,7 +189,7 @@ namespace FirstPlugin.Forms
|
|||
group.Scale = 0;
|
||||
group.Delta = 0;
|
||||
|
||||
for (int frame = 0; frame < activeFVIS.FrameCount; frame++)
|
||||
for (int frame = 0; frame <= activeFVIS.FrameCount; frame++)
|
||||
{
|
||||
group.Keys.Add(new BooleanKeyFrame() { Frame = frame, InterType = InterpolationType.STEPBOOL, Visible = false });
|
||||
}
|
||||
|
|
|
@ -151,9 +151,8 @@ namespace FirstPlugin.Forms
|
|||
listViewCustom1.Columns.Add(BHeader);
|
||||
listViewCustom1.Columns.Add(AHeader);
|
||||
|
||||
for (int Frame = 0; Frame < anim.FrameCount; Frame++)
|
||||
for (int Frame = 0; Frame <= anim.FrameCount; Frame++)
|
||||
{
|
||||
|
||||
var item1 = new ListViewItem($"{Frame}");
|
||||
item1.SubItems.Add("Color");
|
||||
item1.SubItems.Add("Alpha");
|
||||
|
|
|
@ -197,7 +197,7 @@ namespace FirstPlugin.Forms
|
|||
{
|
||||
IsLoading = true;
|
||||
|
||||
for (int Frame = 0; Frame < anim.FrameCount; Frame++)
|
||||
for (int Frame = 0; Frame <= anim.FrameCount; Frame++)
|
||||
{
|
||||
//Constants always show so break after first frame
|
||||
if (activeSampler.group.Constant && Frame != 0)
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue