destroy the sprite if we were doing a preview
This commit is contained in:
		| @@ -432,6 +432,7 @@ namespace SpriteLibrary | ||||
|  | ||||
|         private void WeHaveNewItem() | ||||
|         { | ||||
|             if (PreviewSprite != null) PreviewSprite.Destroy(); | ||||
|             TempInformation.CopyFrom(SpriteInformation[CurrentSIIndex]); | ||||
|             SpriteInformationToForm(); | ||||
|             UpdateMenu(); | ||||
| @@ -441,7 +442,9 @@ namespace SpriteLibrary | ||||
|             if (nindex < 0) return; | ||||
|             if (nindex >= SpriteInformation.Count) return; | ||||
|             CurrentSIIndex = nindex; | ||||
|             if (PreviewSprite != null) PreviewSprite.Destroy(); | ||||
|             TempInformation = SpriteInformation[nindex].Clone(); | ||||
|             CurrentSIAnimation = 0; //always start at animation 0 | ||||
|             WeHaveNewItem(); | ||||
|             UpdateMenu(); | ||||
|         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user