small fix

This commit is contained in:
Chandler Cox
2022-12-29 15:25:12 -06:00
parent cf908fcfeb
commit 7c3d5d739a

View File

@@ -906,13 +906,16 @@ namespace FlaxEditor.Utilities
if (name.StartsWith("g_") || name.StartsWith("m_"))
startIndex = 2;
if (name.StartsWith("_"))
startIndex = 1;
// Filter text
var lastChar = '\0';
for (int i = startIndex; i < length; i++)
{
var c = name[i];
if (i == 0)
if (i == startIndex)
{
sb.Append(char.ToUpper(c));
continue;