mirror of
https://github.com/hanetzer/sdraw_mods_cvr.git
synced 2025-09-03 18:39:23 +00:00
Minor fixes
This commit is contained in:
parent
a5d93643fa
commit
bb94c3f038
6 changed files with 28 additions and 26 deletions
|
@ -159,6 +159,14 @@ namespace ml_pmc
|
|||
// Patches
|
||||
internal void OnAvatarClear()
|
||||
{
|
||||
if(m_active)
|
||||
{
|
||||
RestoreIK();
|
||||
RestoreFingerTracking();
|
||||
OnActivityChange?.Invoke(false);
|
||||
}
|
||||
m_active = false;
|
||||
|
||||
m_inVr = Utils.IsInVR();
|
||||
|
||||
if(m_puppetParser != null)
|
||||
|
@ -172,10 +180,6 @@ namespace ml_pmc
|
|||
m_poseHandler?.Dispose();
|
||||
m_poseHandler = null;
|
||||
|
||||
if(m_active)
|
||||
OnActivityChange?.Invoke(false);
|
||||
m_active = false;
|
||||
|
||||
m_distanceLimit = float.MaxValue;
|
||||
m_fingerTracking = false;
|
||||
m_pose = new HumanPose();
|
||||
|
@ -283,16 +287,16 @@ namespace ml_pmc
|
|||
|
||||
void OverrideIK()
|
||||
{
|
||||
if((m_vrIk != null) && !BodySystem.isCalibrating)
|
||||
if(!BodySystem.isCalibrating)
|
||||
BodySystem.TrackingPositionWeight = 0f;
|
||||
}
|
||||
void RestoreIK()
|
||||
{
|
||||
if((m_vrIk != null) && !BodySystem.isCalibrating)
|
||||
{
|
||||
if(!BodySystem.isCalibrating)
|
||||
BodySystem.TrackingPositionWeight = 1f;
|
||||
|
||||
if(m_vrIk != null)
|
||||
m_vrIk.solver.Reset();
|
||||
}
|
||||
}
|
||||
void RestoreFingerTracking()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue