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