Able to add a new animation.

This commit is contained in:
Tim Young 2017-09-18 10:33:34 -05:00
parent fac2461875
commit 2e5bf62fb1

View File

@ -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;