mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 06:19:22 +00:00
ocd
This commit is contained in:
parent
1cb0e143e9
commit
7d2ced73e9
1 changed files with 5 additions and 10 deletions
|
@ -571,12 +571,9 @@ internal class DesktopVRIKSystem : MonoBehaviour
|
||||||
if (HasCustomIKPose())
|
if (HasCustomIKPose())
|
||||||
{
|
{
|
||||||
SetCustomLayersWeights(0f, 1f);
|
SetCustomLayersWeights(0f, 1f);
|
||||||
avatarAnimator.Update(0f);
|
return;
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
SetMusclesToValue(0f);
|
|
||||||
}
|
}
|
||||||
|
SetMusclesToValue(0f);
|
||||||
break;
|
break;
|
||||||
case AvatarPose.Initial:
|
case AvatarPose.Initial:
|
||||||
HumanPoseHandler.SetHumanPose(ref InitialHumanPose);
|
HumanPoseHandler.SetHumanPose(ref InitialHumanPose);
|
||||||
|
@ -585,12 +582,9 @@ internal class DesktopVRIKSystem : MonoBehaviour
|
||||||
if (HasCustomIKPose())
|
if (HasCustomIKPose())
|
||||||
{
|
{
|
||||||
SetCustomLayersWeights(1f, 0f);
|
SetCustomLayersWeights(1f, 0f);
|
||||||
avatarAnimator.Update(0f);
|
return;
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
SetMusclesToPose(IKPoseMuscles);
|
|
||||||
}
|
}
|
||||||
|
SetMusclesToPose(IKPoseMuscles);
|
||||||
break;
|
break;
|
||||||
case AvatarPose.TPose:
|
case AvatarPose.TPose:
|
||||||
SetMusclesToPose(BodySystem.TPoseMuscles);
|
SetMusclesToPose(BodySystem.TPoseMuscles);
|
||||||
|
@ -609,6 +603,7 @@ internal class DesktopVRIKSystem : MonoBehaviour
|
||||||
{
|
{
|
||||||
avatarAnimator.SetLayerWeight(customIKPoseLayer, customIKPoseLayerWeight);
|
avatarAnimator.SetLayerWeight(customIKPoseLayer, customIKPoseLayerWeight);
|
||||||
avatarAnimator.SetLayerWeight(locomotionLayer, locomotionLayerWeight);
|
avatarAnimator.SetLayerWeight(locomotionLayer, locomotionLayerWeight);
|
||||||
|
avatarAnimator.Update(0f);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetMusclesToValue(float value)
|
void SetMusclesToValue(float value)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue