From 498e94548ba11017f459fe34b2555f573d62a7f6 Mon Sep 17 00:00:00 2001 From: xxSeys1 Date: Sat, 16 Nov 2024 17:08:34 +0100 Subject: [PATCH] fix tests not passing --- Source/Engine/Core/Config/LayersAndTagsSettings.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Engine/Core/Config/LayersAndTagsSettings.cs b/Source/Engine/Core/Config/LayersAndTagsSettings.cs index 911a131a7..92063b27d 100644 --- a/Source/Engine/Core/Config/LayersAndTagsSettings.cs +++ b/Source/Engine/Core/Config/LayersAndTagsSettings.cs @@ -42,6 +42,9 @@ namespace FlaxEditor.Content.Settings /// The layer names. public static string[] GetCurrentTerrainLayers() { + #if FLAX_TESTS + return Array.Empty(); + #else string[] layerNames = GameSettings.Load().TerrainLayers; for (int i = 0; i < layerNames.Length; i++) @@ -51,6 +54,7 @@ namespace FlaxEditor.Content.Settings } return layerNames; + #endif } [LibraryImport("FlaxEngine", EntryPoint = "LayersAndTagsSettingsInternal_GetCurrentLayers", StringMarshalling = StringMarshalling.Custom, StringMarshallingCustomType = typeof(FlaxEngine.Interop.StringMarshaller))]