mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-12 13:34:39 -05:00
Merge pull request #549 from ousttrue/fix/FixUnique
set name if name is null
This commit is contained in:
commit
8ea30513d4
|
|
@ -330,6 +330,10 @@ namespace UniGLTF
|
|||
var used = new HashSet<string>();
|
||||
foreach (var mesh in GLTF.meshes)
|
||||
{
|
||||
if (string.IsNullOrEmpty(mesh.name))
|
||||
{
|
||||
mesh.name = Guid.NewGuid().ToString();
|
||||
}
|
||||
var lname = mesh.name.ToLower();
|
||||
if (used.Contains(lname))
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user