From 63f13467af231b60e20d6d00849298c44f3b1e4c Mon Sep 17 00:00:00 2001 From: Daniel Cornelius Date: Thu, 14 Apr 2022 17:12:12 -0500 Subject: [PATCH] fix for #345 --- .../Managers/InternalCSGModelManager.Lifetime.cs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/Plugins/Editor/Scripts/Control/Managers/InternalCSGModelManager.Lifetime.cs b/Plugins/Editor/Scripts/Control/Managers/InternalCSGModelManager.Lifetime.cs index bd67e35..f759c25 100644 --- a/Plugins/Editor/Scripts/Control/Managers/InternalCSGModelManager.Lifetime.cs +++ b/Plugins/Editor/Scripts/Control/Managers/InternalCSGModelManager.Lifetime.cs @@ -1,14 +1,6 @@ -using System; -using System.Collections.Generic; using UnityEngine; -using System.Linq; -using UnityEngine.SceneManagement; -using UnityEditor.SceneManagement; using UnityEditor; using InternalRealtimeCSG; -using System.Reflection; -using UnityEngine.Rendering; -using System.Runtime.InteropServices; namespace RealtimeCSG { @@ -20,6 +12,9 @@ internal partial class InternalCSGModelManager internal static NativeMethods External; #region Clear + #if UNITY_2019_4_OR_NEWER + [RuntimeInitializeOnLoadMethod( RuntimeInitializeLoadType.SubsystemRegistration )] +#endif public static void Clear() { BrushOutlineManager.ClearOutlines();