ChangeTile now ignores duplicate values (for Flowing textures)

This commit is contained in:
MattNL
2023-08-10 21:40:05 -04:00
parent ce1447cec3
commit 97b0c6d24c

View File

@@ -63,10 +63,11 @@ namespace PckStudio.Forms.Additional_Popups.Animation
{
foreach ((int i, var content) in textureInfos.enumerate())
{
if (!string.IsNullOrEmpty(content.DisplayName))
if (!string.IsNullOrEmpty(content.DisplayName) && !collection.ContainsKey(content.DisplayName))
{
TreeNode tileNode = new TreeNode(content.DisplayName)
{
Name = content.DisplayName,
Tag = content.DisplayName,
ImageIndex = i,
SelectedImageIndex = i,