From 3bd0858acf354d08c28ce711c128a7d708eb6aa4 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Tue, 26 Nov 2024 16:03:16 +0100 Subject: [PATCH] Fix typo and indent --- Source/Engine/Core/Config/LayersAndTagsSettings.cs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Source/Engine/Core/Config/LayersAndTagsSettings.cs b/Source/Engine/Core/Config/LayersAndTagsSettings.cs index 886c34b8a..4086ec657 100644 --- a/Source/Engine/Core/Config/LayersAndTagsSettings.cs +++ b/Source/Engine/Core/Config/LayersAndTagsSettings.cs @@ -16,7 +16,7 @@ namespace FlaxEditor.Content.Settings public List Tags = new List(); /// - /// The layers names. + /// The layer names. /// [EditorOrder(10), EditorDisplay("Layers", EditorDisplayAttribute.InlineStyle), Collection(CanResize = false, Display = CollectionAttribute.DisplayType.Inline)] public string[] Layers = new string[32]; @@ -31,7 +31,7 @@ namespace FlaxEditor.Content.Settings } /// - /// The layers names. + /// The layer names. /// [EditorOrder(10), EditorDisplay("Terrain Layers", EditorDisplayAttribute.InlineStyle), Collection(CanResize = false, Display = CollectionAttribute.DisplayType.Inline)] public string[] TerrainLayers = new string[8]; @@ -42,19 +42,17 @@ namespace FlaxEditor.Content.Settings /// The layer names. public static string[] GetCurrentTerrainLayers() { - #if FLAX_TESTS +#if FLAX_TESTS return System.Array.Empty(); - #else +#else string[] layerNames = GameSettings.Load().TerrainLayers; - for (int i = 0; i < layerNames.Length; i++) { if (string.IsNullOrEmpty(layerNames[i])) layerNames[i] = $"Layer {i}"; } - return layerNames; - #endif +#endif } [LibraryImport("FlaxEngine", EntryPoint = "LayersAndTagsSettingsInternal_GetCurrentLayers", StringMarshalling = StringMarshalling.Custom, StringMarshallingCustomType = typeof(FlaxEngine.Interop.StringMarshaller))]