1
0
mirror of synced 2024-11-30 18:24:39 +01:00

Fix keyframe list for texture patterns that has no texture present

This commit is contained in:
KillzXGaming 2019-07-16 17:03:17 -04:00
parent 43081a4086
commit c8ac9c8de2
2 changed files with 8 additions and 2 deletions

Binary file not shown.

View File

@ -249,6 +249,8 @@ namespace FirstPlugin.Forms
private void AddKeyFrameImage(int Index, int Frame) private void AddKeyFrameImage(int Index, int Frame)
{ {
KeyFrames.Add(Frame);
var tex = activeSampler.GetActiveTexture((int)Index); var tex = activeSampler.GetActiveTexture((int)Index);
if (tex != null) if (tex != null)
{ {
@ -262,8 +264,6 @@ namespace FirstPlugin.Forms
Images.Add(Frame, temp); Images.Add(Frame, temp);
} }
KeyFrames.Add(Frame);
if (listViewCustom1.InvokeRequired) if (listViewCustom1.InvokeRequired)
{ {
listViewCustom1.Invoke((MethodInvoker)delegate { listViewCustom1.Invoke((MethodInvoker)delegate {
@ -401,8 +401,14 @@ namespace FirstPlugin.Forms
{ {
if (Images.ContainsKey(Frame)) if (Images.ContainsKey(Frame))
pictureBoxCustom1.Image = Images[Frame]; pictureBoxCustom1.Image = Images[Frame];
else
pictureBoxCustom1.Image = null;
} }
else
pictureBoxCustom1.Image = null;
} }
else
pictureBoxCustom1.Image = null;
} }
private void currentFrameCounterUD_ValueChanged(object sender, EventArgs e) private void currentFrameCounterUD_ValueChanged(object sender, EventArgs e)