Fix not showing the last key frame in the animation editors.

This commit is contained in:
KillzXGaming 2019-05-22 16:49:17 -04:00
parent 3234e3a817
commit 53f37afde1
8 changed files with 4 additions and 5 deletions

Binary file not shown.

View file

@ -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 ||

View file

@ -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 });
}

View file

@ -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");

View file

@ -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)