From 85db9bd2cd8e3d5a44585216ae19430513a08670 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Tue, 27 Jun 2023 15:38:04 +0900 Subject: [PATCH] pose to Motion --- Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs b/Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs index 5b493beb9..88969baa9 100644 --- a/Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs +++ b/Assets/VRM10_Samples/VRM10Viewer/VRM10ViewerUI.cs @@ -358,7 +358,7 @@ namespace UniVRM10.VRM10Viewer m_loaded.EnableBlinkValue = m_enableAutoBlink.isOn; m_loaded.EnableAutoExpressionValue = m_enableAutoExpression.isOn; - var useBvh = m_ui.IsBvhEnabled && Motion != null; + var useBvh = Motion != null; if (useBvh) { // update humanoid @@ -447,11 +447,7 @@ namespace UniVRM10.VRM10Viewer try { - IMotion pose = await VrmAnimation.LoadVrmAnimationPose(text); - if (m_loaded != null) - { - VRM10Retarget.Retarget(pose.ControlRig, (m_loaded.ControlRig, m_loaded.ControlRig)); - } + Motion = await VrmAnimation.LoadVrmAnimationPose(text); } catch (UniJSON.ParserException) {