1
0
mirror of synced 2025-01-19 01:14:08 +01:00

Avoid automatically binding framecount to prevent some issues

This commit is contained in:
KillzXGaming 2019-07-09 19:03:09 -04:00
parent 6704829c32
commit 3bf760a445
5 changed files with 4 additions and 4 deletions

Binary file not shown.

View File

@ -99,6 +99,9 @@ namespace FirstPlugin.Forms
animationTrackBar.Maximum = value.FrameCount;
animationTrackBar.Minimum = 0;
currentFrameCounterUD.Value = 0;
frameCountUD.Maximum = value.FrameCount;
frameCountUD.Value = value.FrameCount;
}
}
@ -125,9 +128,6 @@ namespace FirstPlugin.Forms
private void ReloadAnimationView(MaterialAnimation materialAnim)
{
frameCountUD.Maximum = materialAnim.FrameCount;
frameCountUD.Bind(materialAnim, "FrameCount");
treeView1.Nodes.Clear();
int Index = 0;
@ -200,7 +200,7 @@ namespace FirstPlugin.Forms
break;
var keyFrame = activeSampler.GetKeyFrame(Frame);
Console.WriteLine($"keyFrame {Frame} Keyed {keyFrame.IsKeyed}");
if (keyFrame.IsKeyed || activeSampler.Constant)
{
string TextureKey = activeSampler.GetActiveTextureNameByIndex((int)keyFrame.Value);