From afdd264e639640227b17ab42008c324ad10689de Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Tue, 16 Sep 2025 16:34:58 +0200 Subject: [PATCH] Fix compilation of Editor in Release mode --- Source/Editor/CustomEditors/Dedicated/GPUTextureEditor.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/Editor/CustomEditors/Dedicated/GPUTextureEditor.cs b/Source/Editor/CustomEditors/Dedicated/GPUTextureEditor.cs index 9df7ca377..954059a28 100644 --- a/Source/Editor/CustomEditors/Dedicated/GPUTextureEditor.cs +++ b/Source/Editor/CustomEditors/Dedicated/GPUTextureEditor.cs @@ -52,7 +52,12 @@ namespace FlaxEditor.CustomEditors.Dedicated if (texture) { var desc = texture.Description; - _image.TooltipText = $"{texture.Name}\nType: {texture.ResourceType}\nSize: {desc.Width}x{desc.Height}\nFormat: {desc.Format}\nMemory: {Utilities.Utils.FormatBytesCount(texture.MemoryUsage)}"; +#if BUILD_RELEASE + var name = string.Empty; +#else + var name = texture.Name; +#endif + _image.TooltipText = $"{name}\nType: {texture.ResourceType}\nSize: {desc.Width}x{desc.Height}\nFormat: {desc.Format}\nMemory: {Utilities.Utils.FormatBytesCount(texture.MemoryUsage)}"; } else {