[AlternateIKSystem] Make resharper shut up

This commit is contained in:
NotAKidoS 2023-07-14 04:14:11 -05:00
parent 3f4de3ed7f
commit dc2916e8e6
3 changed files with 5 additions and 6 deletions

View file

@ -109,6 +109,6 @@ internal class IKSystemPatches
private static void Prefix_IKSystem_InitializeAvatar(ref bool __runOriginal)
{
// Don't setup with native IKSystem
__runOriginal = !ModSettings.EntryEnabled.Value;
__runOriginal &= !ModSettings.EntryEnabled.Value;
}
}

View file

@ -32,8 +32,8 @@ internal abstract class IKHandler
// Solver Info
internal float _scaleDifference = 1f;
internal float _locomotionWeight = 1f;
internal float _ikSimulatedRootAngle = 0f;
internal bool _wasTrackingLocomotion = false;
internal float _ikSimulatedRootAngle;
internal bool _wasTrackingLocomotion;
#endregion

View file

@ -5,7 +5,6 @@ using NAK.AlternateIKSystem.IK.IKHandlers;
using NAK.AlternateIKSystem.VRIKHelpers;
using RootMotion.FinalIK;
using UnityEngine;
using UnityEngine.Events;
namespace NAK.AlternateIKSystem.IK;
@ -256,8 +255,8 @@ public class IKManager : MonoBehaviour
SetAvatarPose(AvatarPose.Initial);
VRIKUtils.ApplyScaleToVRIK(_vrik, _ikHandler._locomotionData, 1f);
_vrik.onPreSolverUpdate.AddListener(new UnityAction(OnPreSolverUpdateGeneral));
_vrik.onPostSolverUpdate.AddListener(new UnityAction(OnPostSolverUpdateGeneral));
_vrik.onPreSolverUpdate.AddListener(OnPreSolverUpdateGeneral);
_vrik.onPostSolverUpdate.AddListener(OnPostSolverUpdateGeneral);
}
#endregion