From 06d826d4b2beb261e3ec7008a404eb6a9c812ab4 Mon Sep 17 00:00:00 2001 From: lvshiling Date: Wed, 30 Apr 2025 11:42:38 +0800 Subject: [PATCH] Fix currentPath DirectorySeparatorChar --- .../TEngine/Editor/AtlasMakerEditor/EditorSpriteSaveInfo.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UnityProject/Assets/TEngine/Editor/AtlasMakerEditor/EditorSpriteSaveInfo.cs b/UnityProject/Assets/TEngine/Editor/AtlasMakerEditor/EditorSpriteSaveInfo.cs index f7772376..b6265625 100644 --- a/UnityProject/Assets/TEngine/Editor/AtlasMakerEditor/EditorSpriteSaveInfo.cs +++ b/UnityProject/Assets/TEngine/Editor/AtlasMakerEditor/EditorSpriteSaveInfo.cs @@ -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);