mirror of
https://github.com/hanetzer/sdraw_mods_cvr.git
synced 2025-09-03 10:29:22 +00:00
Fix of moving to side on avatar change
This commit is contained in:
parent
093ffad956
commit
1f0a179d5f
1 changed files with 4 additions and 4 deletions
|
@ -365,10 +365,6 @@ namespace ml_prm
|
|||
}
|
||||
}
|
||||
|
||||
// And return back
|
||||
m_puppetRoot.position = m_avatarTransform.position;
|
||||
m_puppetRoot.rotation = m_avatarTransform.rotation;
|
||||
|
||||
m_vrIK = PlayerSetup.Instance._avatar.GetComponent<VRIK>();
|
||||
if(m_vrIK != null)
|
||||
m_vrIK.onPostSolverUpdate.AddListener(this.OnIKPostSolverUpdate);
|
||||
|
@ -391,6 +387,10 @@ namespace ml_prm
|
|||
l_handler.SetColliderMaterial(m_physicsMaterial);
|
||||
}
|
||||
|
||||
// And return back
|
||||
m_puppetRoot.position = m_avatarTransform.position;
|
||||
m_puppetRoot.rotation = m_avatarTransform.rotation;
|
||||
|
||||
m_avatarReady = true;
|
||||
m_initTask = null;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue