From e8f221aed8445ea6c1fe787ed313551348c0e83b Mon Sep 17 00:00:00 2001 From: ousttrue Date: Wed, 16 Oct 2024 18:18:36 +0900 Subject: [PATCH] =?UTF-8?q?VRMC=5FspringBone=20=E3=81=8C=E7=84=A1=E3=81=8F?= =?UTF-8?q?=E3=81=A6=E3=82=82=E5=88=9D=E6=9C=9F=E5=8C=96=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/VRM10/Runtime/IO/Vrm10Importer.cs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Assets/VRM10/Runtime/IO/Vrm10Importer.cs b/Assets/VRM10/Runtime/IO/Vrm10Importer.cs index 0543f9f6c..dacfdedf7 100644 --- a/Assets/VRM10/Runtime/IO/Vrm10Importer.cs +++ b/Assets/VRM10/Runtime/IO/Vrm10Importer.cs @@ -286,14 +286,15 @@ namespace UniVRM10 if (UniGLTF.Extensions.VRMC_springBone.GltfDeserializer.TryGet(Data.GLTF.extensions, out UniGLTF.Extensions.VRMC_springBone.VRMC_springBone springBone)) { await LoadSpringBoneAsync(awaitCaller, controller, springBone); + } - if (Application.isPlaying) - { - // EditorImport では呼ばない - // Vrm10Runtime で初期化していたが、 async にするためこちらに移動 v0.127 - // RuntimeGltfInstance にアクセスしたいのだが OnLoadHierarchy ではまだ attach されてなかった v0.128 - await m_springboneRuntime.InitializeAsync(controller, awaitCaller); - } + if (Application.isPlaying) + { + // EditorImport では呼ばない + // Vrm10Runtime で初期化していたが、 async にするためこちらに移動 v0.127 + // RuntimeGltfInstance にアクセスしたいのだが OnLoadHierarchy ではまだ attach されてなかった v0.128 + // VRMC_springBone が無くても初期化する v0.127.2 + await m_springboneRuntime.InitializeAsync(controller, awaitCaller); } // constraint