From 838cb9f2ced4aad61ee630b52362462ad96ddfba Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Tue, 27 Aug 2024 23:37:28 +0200 Subject: [PATCH] Fix object reference empty text clipping --- Source/Editor/CustomEditors/Editors/FlaxObjectRefEditor.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Editor/CustomEditors/Editors/FlaxObjectRefEditor.cs b/Source/Editor/CustomEditors/Editors/FlaxObjectRefEditor.cs index bc31cd10b..fd367d21f 100644 --- a/Source/Editor/CustomEditors/Editors/FlaxObjectRefEditor.cs +++ b/Source/Editor/CustomEditors/Editors/FlaxObjectRefEditor.cs @@ -208,7 +208,9 @@ namespace FlaxEditor.CustomEditors.Editors else { // Draw info + Render2D.PushClip(nameRect); Render2D.DrawText(style.FontMedium, Type != null ? $"None ({Utilities.Utils.GetPropertyNameUI(Type.ToString())})" : "-", nameRect, isEnabled ? style.ForegroundGrey : style.ForegroundGrey.AlphaMultiplied(0.75f), TextAlignment.Near, TextAlignment.Center); + Render2D.PopClip(); } // Draw picker button