From 7d2ced73e9bc598a6c06a583087ed009e9b58059 Mon Sep 17 00:00:00 2001 From: NotAKidoS <37721153+NotAKidOnSteam@users.noreply.github.com> Date: Wed, 29 Mar 2023 01:12:35 -0500 Subject: [PATCH] ocd --- DesktopVRIK/DesktopVRIKSystem.cs | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/DesktopVRIK/DesktopVRIKSystem.cs b/DesktopVRIK/DesktopVRIKSystem.cs index b17973c..105bb08 100644 --- a/DesktopVRIK/DesktopVRIKSystem.cs +++ b/DesktopVRIK/DesktopVRIKSystem.cs @@ -571,12 +571,9 @@ internal class DesktopVRIKSystem : MonoBehaviour if (HasCustomIKPose()) { SetCustomLayersWeights(0f, 1f); - avatarAnimator.Update(0f); - } - else - { - SetMusclesToValue(0f); + return; } + SetMusclesToValue(0f); break; case AvatarPose.Initial: HumanPoseHandler.SetHumanPose(ref InitialHumanPose); @@ -585,12 +582,9 @@ internal class DesktopVRIKSystem : MonoBehaviour if (HasCustomIKPose()) { SetCustomLayersWeights(1f, 0f); - avatarAnimator.Update(0f); - } - else - { - SetMusclesToPose(IKPoseMuscles); + return; } + SetMusclesToPose(IKPoseMuscles); break; case AvatarPose.TPose: SetMusclesToPose(BodySystem.TPoseMuscles); @@ -609,6 +603,7 @@ internal class DesktopVRIKSystem : MonoBehaviour { avatarAnimator.SetLayerWeight(customIKPoseLayer, customIKPoseLayerWeight); avatarAnimator.SetLayerWeight(locomotionLayer, locomotionLayerWeight); + avatarAnimator.Update(0f); } void SetMusclesToValue(float value)