mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-04-24 15:08:02 -05:00
fix VrmScriptedImporterEditorGUI.m_vrm
This commit is contained in:
parent
af50e8e2a3
commit
9dfab64d0e
|
|
@ -26,13 +26,16 @@ namespace UniVRM10
|
|||
|
||||
m_importer = target as VrmScriptedImporter;
|
||||
m_message = VrmScriptedImporterImpl.TryParseOrMigrate(m_importer.assetPath, m_importer.MigrateToVrm1, out m_parser);
|
||||
if (string.IsNullOrEmpty(m_message))
|
||||
if (!string.IsNullOrEmpty(m_message))
|
||||
{
|
||||
// ok
|
||||
// error
|
||||
return;
|
||||
}
|
||||
if (!UniGLTF.Extensions.VRMC_vrm.GltfDeserializer.TryGet(m_parser.GLTF.extensions, out m_vrm))
|
||||
{
|
||||
// error
|
||||
m_message = "no vrm1";
|
||||
m_parser = null;
|
||||
return;
|
||||
}
|
||||
m_model = VrmLoader.CreateVrmModel(m_parser);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user