refactor AtlasMakerEditor

This commit is contained in:
tpxxn
2025-05-06 13:58:02 +08:00
parent 9a8de43e95
commit 122b5b27ad

View File

@@ -88,9 +88,8 @@
public static void MarkParentAtlasesDirty(string assetPath) public static void MarkParentAtlasesDirty(string assetPath)
{ {
var currentPath = Path.GetDirectoryName(assetPath); var currentPath = Path.GetDirectoryName(assetPath).Replace("\\", "/");
var rootPath = Config.sourceAtlasRoot.Replace("\\", "/").TrimEnd('/'); var rootPath = Config.sourceAtlasRoot.Replace("\\", "/").TrimEnd('/');
currentPath = currentPath.Replace("\\", "/");
while (currentPath != null && currentPath.StartsWith(rootPath)) while (currentPath != null && currentPath.StartsWith(rootPath))
{ {
var parentAtlasName = GetAtlasNameForDirectory(currentPath); var parentAtlasName = GetAtlasNameForDirectory(currentPath);