diff --git a/.vs/Switch_Toolbox/v15/.suo b/.vs/Switch_Toolbox/v15/.suo index dd979043..1f2ed439 100644 Binary files a/.vs/Switch_Toolbox/v15/.suo and b/.vs/Switch_Toolbox/v15/.suo differ diff --git a/Switch_FileFormatsMain/GUI/BFRES/TexturePattern/BfresTexturePatternEditor.cs b/Switch_FileFormatsMain/GUI/BFRES/TexturePattern/BfresTexturePatternEditor.cs index 90cc1282..d2639b9d 100644 --- a/Switch_FileFormatsMain/GUI/BFRES/TexturePattern/BfresTexturePatternEditor.cs +++ b/Switch_FileFormatsMain/GUI/BFRES/TexturePattern/BfresTexturePatternEditor.cs @@ -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)