Fix tooltip for project folder

This commit is contained in:
Wojtek Figat
2023-06-27 23:24:02 +02:00
parent 0711710544
commit 75d5023354

View File

@@ -1125,7 +1125,9 @@ namespace FlaxEditor.Utilities
public static string GetAssetNamePathWithExt(string path)
{
var projectFolder = Globals.ProjectFolder;
if (path.StartsWith(projectFolder))
if (path == projectFolder)
path = string.Empty;
else if (path.StartsWith(projectFolder))
path = path.Substring(projectFolder.Length + 1);
return path;
}