From 2e5bf62fb13bd219b925dae02168cb96246dd797 Mon Sep 17 00:00:00 2001 From: Tim Young Date: Mon, 18 Sep 2017 10:33:34 -0500 Subject: [PATCH] Able to add a new animation. --- SpriteLibrary/SpriteEntryForm.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SpriteLibrary/SpriteEntryForm.cs b/SpriteLibrary/SpriteEntryForm.cs index 26452a3..65b1721 100644 --- a/SpriteLibrary/SpriteEntryForm.cs +++ b/SpriteLibrary/SpriteEntryForm.cs @@ -209,6 +209,8 @@ namespace SpriteLibrary if (CurrentSIAnimation >= TempInformation.Animations.Count) CurrentSIAnimation = TempInformation.Animations.Count -1; if (CurrentSIAnimation < TempInformation.Animations.Count) { + if (CurrentSIAnimation >= TempInformation.Animations.Count) + TempInformation.Animations.Add(new AnimationInfo()); AI = TempInformation.Animations[CurrentSIAnimation]; tbAmimationSpeed.Text = AI.AnimSpeed.ToString(); cbStartingImage.Text = AI.ImageName;