From 0b565233d2b1fe1be6c1060eff1503a201104371 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Thu, 25 Jul 2024 15:59:58 +0900 Subject: [PATCH] fix VRM10SpringBoneJointEditor --- .../Components/SpringBone/VRM10SpringBoneJointEditor.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Assets/VRM10/Editor/Components/SpringBone/VRM10SpringBoneJointEditor.cs b/Assets/VRM10/Editor/Components/SpringBone/VRM10SpringBoneJointEditor.cs index 674367c11..a298088ef 100644 --- a/Assets/VRM10/Editor/Components/SpringBone/VRM10SpringBoneJointEditor.cs +++ b/Assets/VRM10/Editor/Components/SpringBone/VRM10SpringBoneJointEditor.cs @@ -23,6 +23,7 @@ namespace UniVRM10 { return; } + m_target = (VRM10SpringBoneJoint)target; m_stiffnessForceProp = serializedObject.FindProperty(nameof(VRM10SpringBoneJoint.m_stiffnessForce)); m_gravityPowerProp = serializedObject.FindProperty(nameof(VRM10SpringBoneJoint.m_gravityPower)); @@ -31,10 +32,7 @@ namespace UniVRM10 m_jointRadiusProp = serializedObject.FindProperty(nameof(VRM10SpringBoneJoint.m_jointRadius)); m_drawColliderProp = serializedObject.FindProperty(nameof(VRM10SpringBoneJoint.m_drawCollider)); - if (m_target != null) - { - m_root = m_target.GetComponentInParent(); - } + m_root = m_target.GetComponentInParent(); } static bool m_showJoints;