Fix currentPath DirectorySeparatorChar

This commit is contained in:
lvshiling
2025-04-30 11:42:38 +08:00
parent afd0c6a24e
commit 06d826d4b2

View File

@@ -90,7 +90,7 @@
{
var currentPath = Path.GetDirectoryName(assetPath);
var rootPath = Config.sourceAtlasRoot.Replace("\\", "/").TrimEnd('/');
currentPath = currentPath.Replace("\\", "/");
while (currentPath != null && currentPath.StartsWith(rootPath))
{
var parentAtlasName = GetAtlasNameForDirectory(currentPath);