mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 06:19:22 +00:00
funky patch for FBT
This commit is contained in:
parent
94abe14f0c
commit
7e942d61cc
2 changed files with 16 additions and 1 deletions
|
@ -3,6 +3,7 @@ using ABI_RC.Core.Player;
|
|||
using ABI_RC.Core.Savior;
|
||||
using ABI_RC.Core.Util.Object_Behaviour;
|
||||
using ABI_RC.Systems.IK;
|
||||
using ABI_RC.Systems.IK.TrackingModules;
|
||||
using ABI_RC.Systems.MovementSystem;
|
||||
using HarmonyLib;
|
||||
using NAK.Melons.DesktopVRSwitch.Patches;
|
||||
|
@ -96,6 +97,16 @@ internal class IKSystemPatches
|
|||
{
|
||||
__instance.referenceTransform.localScale = Vector3.one;
|
||||
}
|
||||
[HarmonyPostfix] //lazy fix so device indecies can change properly
|
||||
[HarmonyPatch(typeof(SteamVRTrackingModule), "ModuleDestroy")]
|
||||
private static void Postfix_SteamVRTrackingModule_ModuleDestroy(ref SteamVRTrackingModule __instance)
|
||||
{
|
||||
for (int i = 0; i < __instance.TrackingPoints.Count; i++)
|
||||
{
|
||||
UnityEngine.Object.Destroy(__instance.TrackingPoints[i].referenceGameObject);
|
||||
}
|
||||
__instance.TrackingPoints.Clear();
|
||||
}
|
||||
}
|
||||
|
||||
internal class VRTrackerManagerPatches
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue