Parameters fetch fix

Restore to default settings
This commit is contained in:
SDraw 2022-08-06 02:03:10 +03:00
parent 8e6f739589
commit ee55c60ed5
No known key found for this signature in database
GPG key ID: BB95B4DAB2BB8BB5
4 changed files with 16 additions and 4 deletions

View file

@ -73,6 +73,9 @@ namespace ml_fpt
PlayerSetup.Instance._trackerManager.trackers[m_hipsTrackerIndex].ShowLine(false);
CVR_InteractableManager.enableInteractions = true;
if(PlayerSetup.Instance._avatar.GetComponent<ABI.CCK.Components.CVRAvatar>().avatarUsesAdvancedSettings)
PlayerSetup.Instance.LoadCurrentAvatarSettingsDefault();
Reset();
ShowHudNotification("Calibration completed");
@ -141,6 +144,9 @@ namespace ml_fpt
{
if(m_inCalibration)
{
m_indexIk.calibrated = true;
m_indexIk.enabled = true;
m_ikCalibrator.leftHandModel.SetActive(false);
m_ikCalibrator.rightHandModel.SetActive(false);