mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-15 07:00:10 -05:00
Merge pull request #2495 from ousttrue/fix/skip_no_triangles_topology
[export][mesh] 三角形メッシュじゃない場合にスキップする
This commit is contained in:
commit
bd3acb2cf1
|
|
@ -266,12 +266,6 @@ namespace UniGLTF
|
|||
}
|
||||
}
|
||||
|
||||
static bool TryGetMeshInfo()
|
||||
{
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public void CalcMeshSize(
|
||||
GameObject root,
|
||||
Renderer renderer,
|
||||
|
|
@ -423,10 +417,19 @@ namespace UniGLTF
|
|||
}
|
||||
|
||||
var info = new MeshExportInfo(renderer, settings);
|
||||
if (info.Mesh != null)
|
||||
if (info.Mesh == null)
|
||||
{
|
||||
m_list.Add(info);
|
||||
continue;
|
||||
}
|
||||
for (int i = 0; i < info.Mesh.subMeshCount; ++i)
|
||||
{
|
||||
if (info.Mesh.GetTopology(i) != MeshTopology.Triangles)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
m_list.Add(info);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user