From 6ebd030f3a54cc0ba3a091b5c9606637291fda3c Mon Sep 17 00:00:00 2001 From: Masataka SUMI Date: Wed, 26 May 2021 21:50:23 +0900 Subject: [PATCH] Ignore enumerating if vrm is 0 --- .../Editor/ScriptedImporter/VrmScriptedImporterEditorGUI.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/VRM10/Editor/ScriptedImporter/VrmScriptedImporterEditorGUI.cs b/Assets/VRM10/Editor/ScriptedImporter/VrmScriptedImporterEditorGUI.cs index 14cf8ca24..b106ac3ab 100644 --- a/Assets/VRM10/Editor/ScriptedImporter/VrmScriptedImporterEditorGUI.cs +++ b/Assets/VRM10/Editor/ScriptedImporter/VrmScriptedImporterEditorGUI.cs @@ -67,7 +67,7 @@ namespace UniVRM10 break; case Tabs.Materials: - if (m_parser != null) + if (m_parser != null && m_vrm != null) { EditorMaterial.OnGUI(m_importer, m_parser, new Vrm10TextureSetImporter(m_parser), assetPath => $"{Path.GetFileNameWithoutExtension(assetPath)}.vrm1.Textures", @@ -76,7 +76,7 @@ namespace UniVRM10 break; case Tabs.Vrm: - if (m_parser != null) + if (m_parser != null && m_vrm != null) { EditorVrm.OnGUI(m_importer, m_parser, m_vrm); }