mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-07 16:45:10 +00:00
Fix currentPath DirectorySeparatorChar
This commit is contained in:
@@ -90,7 +90,7 @@
|
|||||||
{
|
{
|
||||||
var currentPath = Path.GetDirectoryName(assetPath);
|
var currentPath = Path.GetDirectoryName(assetPath);
|
||||||
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);
|
||||||
|
Reference in New Issue
Block a user