Fix double root path
This commit is contained in:
@@ -40,7 +40,6 @@ class Assets
|
||||
public static var onChange = new Event<Void->Void>();
|
||||
|
||||
private static var bundlePaths = new Map<String, String>();
|
||||
private static var defaultRootPath:String;
|
||||
private static var libraries(default, null) = new Map<String, AssetLibrary>();
|
||||
private static var libraryPaths = new Map<String, String>();
|
||||
|
||||
@@ -440,7 +439,7 @@ class Assets
|
||||
if (libraryPaths.exists(id))
|
||||
{
|
||||
path = libraryPaths[id];
|
||||
rootPath = (defaultRootPath != "" ? defaultRootPath + "/" : "") + Path.directory(path);
|
||||
rootPath = Path.directory(path);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -449,8 +448,10 @@ class Assets
|
||||
rootPath = path;
|
||||
path += "/library.json";
|
||||
}
|
||||
|
||||
rootPath = (defaultRootPath != "" ? defaultRootPath + "/" : "") + Path.directory(path);
|
||||
else
|
||||
{
|
||||
rootPath = Path.directory(path);
|
||||
}
|
||||
path = __cacheBreak(path);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user