Fix keyframe list for texture patterns that has no texture present
This commit is contained in:
parent
43081a4086
commit
c8ac9c8de2
Binary file not shown.
@ -249,6 +249,8 @@ namespace FirstPlugin.Forms
|
||||
|
||||
private void AddKeyFrameImage(int Index, int Frame)
|
||||
{
|
||||
KeyFrames.Add(Frame);
|
||||
|
||||
var tex = activeSampler.GetActiveTexture((int)Index);
|
||||
if (tex != null)
|
||||
{
|
||||
@ -262,8 +264,6 @@ namespace FirstPlugin.Forms
|
||||
Images.Add(Frame, temp);
|
||||
}
|
||||
|
||||
KeyFrames.Add(Frame);
|
||||
|
||||
if (listViewCustom1.InvokeRequired)
|
||||
{
|
||||
listViewCustom1.Invoke((MethodInvoker)delegate {
|
||||
@ -401,8 +401,14 @@ namespace FirstPlugin.Forms
|
||||
{
|
||||
if (Images.ContainsKey(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)
|
||||
|
Loading…
Reference in New Issue
Block a user