Changed check for duplicate names to Internal instead of Display

This commit is contained in:
MattNL
2023-08-10 21:51:56 -04:00
parent 97b0c6d24c
commit 8b5dea0630

View File

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