[BetterShadowClone] Reworked vert finding for exclusions to not nuke game for 20s

This commit is contained in:
NotAKidoS 2024-02-03 05:40:11 -06:00
parent 0d82606308
commit df45fb50d9
4 changed files with 64 additions and 44 deletions

View file

@ -16,9 +16,6 @@ public class MeshTransformHider : ITransformHider, IFPRExclusionTask
private readonly MeshRenderer _mainMesh;
private bool _enabledState;
// exclusion
private readonly FPRExclusion _exclusion;
#region ITransformHider Methods
public bool IsActive { get; set; } = true; // default hide, but FPRExclusion can override
@ -36,9 +33,8 @@ public class MeshTransformHider : ITransformHider, IFPRExclusionTask
Dispose();
return;
}
_exclusion = exclusion;
_exclusion.relatedTasks.Add(this);
exclusion.relatedTasks.Add(this);
_mainMesh = renderer;