From a319b61441333d4e650c34e83d2dd2eea0ce314d Mon Sep 17 00:00:00 2001 From: ousttrue Date: Wed, 30 Jun 2021 14:51:26 +0900 Subject: [PATCH] null check --- .../Editor/UniGLTF/ExportDialog/MeshExportValidator.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Assets/UniGLTF/Editor/UniGLTF/ExportDialog/MeshExportValidator.cs b/Assets/UniGLTF/Editor/UniGLTF/ExportDialog/MeshExportValidator.cs index 9d60b995f..d3d94dc76 100644 --- a/Assets/UniGLTF/Editor/UniGLTF/ExportDialog/MeshExportValidator.cs +++ b/Assets/UniGLTF/Editor/UniGLTF/ExportDialog/MeshExportValidator.cs @@ -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) {