From b99e7cb9a47de77280eece57d6ed5e7718e848db Mon Sep 17 00:00:00 2001 From: ousttrue Date: Thu, 6 Sep 2018 15:07:55 +0900 Subject: [PATCH] Added force argument --- Scripts/SpringBone/VRMSpringBone.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Scripts/SpringBone/VRMSpringBone.cs b/Scripts/SpringBone/VRMSpringBone.cs index 473605031..b6871b4e6 100644 --- a/Scripts/SpringBone/VRMSpringBone.cs +++ b/Scripts/SpringBone/VRMSpringBone.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Linq; using UnityEngine; using UniGLTF; @@ -193,11 +193,11 @@ namespace VRM } [ContextMenu("Reset bones")] - public void Setup() + public void Setup(bool force=false) { if (RootBones != null) { - if (m_initialLocalRotationMap == null) + if (force || m_initialLocalRotationMap == null) { m_initialLocalRotationMap = new Dictionary(); }