Skip to content

Commit

Permalink
Fix tracking rig being enabled while in FPFC
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoco007 committed May 23, 2024
1 parent 97e6c89 commit f115ccf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/CustomAvatar/Tracking/TrackingRig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -509,12 +509,12 @@ private void OnControllersDidChangeReference()

private void OnFpfcSettingsChanged(IFPFCSettings fpfcSettings)
{
_parentConstraint.enabled = _scaleConstraint.enabled = !fpfcSettings.Enabled;
enabled = _beatSaberUtilities.hasFocus && !fpfcSettings.Enabled;
}

private void OnFocusChanged(bool hasFocus)
{
enabled = hasFocus;
enabled = hasFocus && !_fpfcSettings.Enabled;
}

private void UpdateOffsets()
Expand Down

0 comments on commit f115ccf

Please sign in to comment.