Merge pull request #145 from lvshiling/main

Fix currentPath DirectorySeparatorChar
This commit is contained in:
ALEX
2025-05-03 12:13:31 +08:00
committed by GitHub

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);