Return first path if Assets.getPath refers to a path group
This commit is contained in:
@@ -308,7 +308,19 @@ class AssetLibrary {
|
||||
|
||||
public function getPath (id:String):String {
|
||||
|
||||
return paths.get (id);
|
||||
if (paths.exists (id)) {
|
||||
|
||||
return paths.get (id);
|
||||
|
||||
} else if (pathGroups.exists (id)) {
|
||||
|
||||
return pathGroups.get (id)[0];
|
||||
|
||||
} else {
|
||||
|
||||
return null;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user