mirror of
https://github.com/hanetzer/sdraw_mods_cvr.git
synced 2025-09-03 18:39:23 +00:00
Mode switch handling, attempt two
This commit is contained in:
parent
66b448a2c3
commit
84b0de7065
13 changed files with 256 additions and 288 deletions
|
@ -111,6 +111,7 @@ namespace ml_prm
|
|||
if(m_puppetRoot != null)
|
||||
Object.Destroy(m_puppetRoot);
|
||||
m_puppetRoot = null;
|
||||
|
||||
m_puppet = null;
|
||||
m_rigidBodies.Clear();
|
||||
m_colliders.Clear();
|
||||
|
@ -443,14 +444,6 @@ namespace ml_prm
|
|||
|
||||
if(m_vrIK != null)
|
||||
m_vrIK.onPostSolverUpdate.AddListener(this.OnIKPostUpdate);
|
||||
|
||||
if(m_avatarReady && m_enabled)
|
||||
{
|
||||
m_forcedSwitch = true;
|
||||
SwitchRagdoll();
|
||||
m_forcedSwitch = false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
internal void OnAvatarScaling(float p_scaleDifference)
|
||||
|
@ -536,7 +529,7 @@ namespace ml_prm
|
|||
}
|
||||
}
|
||||
|
||||
// IK updates
|
||||
// VRIK updates
|
||||
void OnIKPostUpdate()
|
||||
{
|
||||
if(!m_enabled)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue