mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 14:29:25 +00:00
[AvatarScaleMod] Fix initial scale always acting like Setting_PersistantHeight was true.
This commit is contained in:
parent
3d50e64af1
commit
afb44fc3a7
2 changed files with 2 additions and 4 deletions
|
@ -82,10 +82,7 @@ public class AvatarScaleManager : MonoBehaviour
|
||||||
_localAvatarScaler.OnAvatarInstantiated(playerSetup._avatar, playerSetup._initialAvatarHeight,
|
_localAvatarScaler.OnAvatarInstantiated(playerSetup._avatar, playerSetup._initialAvatarHeight,
|
||||||
playerSetup.initialScale);
|
playerSetup.initialScale);
|
||||||
|
|
||||||
if (Setting_PersistantHeight)
|
SetHeight(Setting_PersistantHeight ? _lastTargetHeight : -1f);
|
||||||
SetHeight(_lastTargetHeight);
|
|
||||||
else if (_lastTargetHeight > 0)
|
|
||||||
SetHeight(playerSetup._initialAvatarHeight);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void OnAvatarDestroyed(PlayerSetup playerSetup)
|
public void OnAvatarDestroyed(PlayerSetup playerSetup)
|
||||||
|
|
|
@ -32,6 +32,7 @@ public class LocalScaler : BaseScaler
|
||||||
_targetHeight = initialHeight;
|
_targetHeight = initialHeight;
|
||||||
_scaleFactor = 1f;
|
_scaleFactor = 1f;
|
||||||
|
|
||||||
|
_isHeightAdjustedFromInitial = false;
|
||||||
_legacyAnimationScale = Vector3.zero;
|
_legacyAnimationScale = Vector3.zero;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue