null check

This commit is contained in:
ousttrue 2021-06-30 14:51:26 +09:00
parent ff2271eea9
commit a319b61441

View File

@ -33,6 +33,10 @@ namespace UniGLTF
public void SetRoot(GameObject ExportRoot, GltfExportSettings settings, IBlendShapeExportFilter blendShapeFilter)
{
if(ExportRoot==null)
{
return;
}
MeshExportInfo.GetInfo(ExportRoot.transform.Traverse().Skip(1), Meshes, settings);
foreach(var info in Meshes)
{