mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-11 21:14:19 -05:00
remove MakeUniqueName
This commit is contained in:
parent
15caf0cc4e
commit
1d7db07a84
|
|
@ -312,20 +312,6 @@ namespace UniGLTF
|
|||
}
|
||||
}
|
||||
|
||||
static string MakeUniqueName(string name, HashSet<string> used)
|
||||
{
|
||||
for (var i = 0; i < 100; ++i)
|
||||
{
|
||||
name = $"{name}_{i}";
|
||||
if (!used.Contains(name))
|
||||
{
|
||||
return name;
|
||||
}
|
||||
}
|
||||
|
||||
throw new Exception("hobo arienai");
|
||||
}
|
||||
|
||||
void FixUnique()
|
||||
{
|
||||
var used = new HashSet<string>();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user