mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-11 04:54:17 -05:00
Added force argument
This commit is contained in:
parent
9bc78a8a97
commit
b99e7cb9a4
|
|
@ -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<Transform, Quaternion>();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user