From a947dc0cc372162d5de3dbd0a00a5cbb4de61047 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Sun, 14 Feb 2021 17:12:29 +0100 Subject: [PATCH] Fix properties names formatting for UI with 2 character words Fixes #229 --- Source/Editor/CustomEditors/CustomEditorsUtil.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Editor/CustomEditors/CustomEditorsUtil.cs b/Source/Editor/CustomEditors/CustomEditorsUtil.cs index 2f97da333..9b83dd820 100644 --- a/Source/Editor/CustomEditors/CustomEditorsUtil.cs +++ b/Source/Editor/CustomEditors/CustomEditorsUtil.cs @@ -71,7 +71,7 @@ namespace FlaxEditor.CustomEditors // Space before word starting with uppercase letter if (char.IsUpper(c) && i > 0) { - if (i + 2 < length && !char.IsUpper(name[i + 1]) && !char.IsUpper(name[i + 2])) + if (i + 1 < length && !char.IsUpper(name[i + 1])) sb.Append(' '); } // Space instead of underscore