mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
refactor AtlasMakerEditor
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user