Merge pull request #2383 from ousttrue/fix/no_vrm1

fix VRM10SpringBoneJointEditor
This commit is contained in:
ousttrue
2024-07-26 13:20:12 +09:00
committed by GitHub

View File

@@ -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<Vrm10Instance>();
}
m_root = m_target.GetComponentInParent<Vrm10Instance>();
}
static bool m_showJoints;