mirror of
https://github.com/aelurum/AssetStudio.git
synced 2025-05-25 05:40:21 -04:00
Change the way rename same name assets
This commit is contained in:
parent
afcbba8182
commit
3441135b2f
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user