Change the way rename same name assets

This commit is contained in:
Perfare 2019-06-02 14:36:35 +08:00
parent afcbba8182
commit 3441135b2f
1 changed files with 5 additions and 1 deletions

View File

@ -220,7 +220,11 @@ namespace AssetStudioGUI
item.Extension = extension;
}
item.Text = Path.GetDirectoryName(originalPath) + "\\" + item.Text;
item.Text = Path.GetDirectoryName(originalPath) + "\\" + Path.GetFileNameWithoutExtension(originalPath);
if (!assetsNameHash.Add((item.TypeString + item.Text).ToUpper()))
{
item.Text += item.UniqueID;
}
}
}
}