From 122b5b27ad81a718a75ca23a2714d481b51e50ba Mon Sep 17 00:00:00 2001 From: tpxxn <351765204@qq.com> Date: Tue, 6 May 2025 13:58:02 +0800 Subject: [PATCH] refactor AtlasMakerEditor --- .../TEngine/Editor/AtlasMakerEditor/EditorSpriteSaveInfo.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/UnityProject/Assets/TEngine/Editor/AtlasMakerEditor/EditorSpriteSaveInfo.cs b/UnityProject/Assets/TEngine/Editor/AtlasMakerEditor/EditorSpriteSaveInfo.cs index b6265625..6b910275 100644 --- a/UnityProject/Assets/TEngine/Editor/AtlasMakerEditor/EditorSpriteSaveInfo.cs +++ b/UnityProject/Assets/TEngine/Editor/AtlasMakerEditor/EditorSpriteSaveInfo.cs @@ -88,9 +88,8 @@ public static void MarkParentAtlasesDirty(string assetPath) { - var currentPath = Path.GetDirectoryName(assetPath); + var currentPath = Path.GetDirectoryName(assetPath).Replace("\\", "/"); var rootPath = Config.sourceAtlasRoot.Replace("\\", "/").TrimEnd('/'); - currentPath = currentPath.Replace("\\", "/"); while (currentPath != null && currentPath.StartsWith(rootPath)) { var parentAtlasName = GetAtlasNameForDirectory(currentPath);