This commit is contained in:
Wojtek Figat
2024-02-19 10:54:29 +01:00
parent 71627f1bbd
commit a061afd840
3 changed files with 45 additions and 48 deletions

View File

@@ -69,8 +69,7 @@ namespace FlaxEditor.Content
/// <inheritdoc />
public override bool IsFileNameValid(string filename)
{
// Scripts cannot start with digit.
if (Char.IsDigit(filename[0]))
if (char.IsDigit(filename[0]))
return false;
if (filename.Equals("Script"))
return false;