[AvatarScaleMod] Quick edge-case fixes.

Fix avatars without scale sliders triggering anim scale change.
Fix universal scaling reaching initial height causing a reset.
This commit is contained in:
NotAKidoS 2023-09-24 06:33:52 -05:00
parent ff06c20c01
commit 3d50e64af1
2 changed files with 7 additions and 2 deletions

View file

@ -65,8 +65,7 @@ public class BaseScaler : MonoBehaviour
if (Math.Abs(height - _targetHeight) < float.Epsilon)
return;
if (height < float.Epsilon
|| Math.Abs(height - _initialHeight) < float.Epsilon)
if (height < float.Epsilon)
{
ResetHeight();
return;