Return first path if Assets.getPath refers to a path group
This commit is contained in:
@@ -308,8 +308,20 @@ class AssetLibrary {
|
|||||||
|
|
||||||
public function getPath (id:String):String {
|
public function getPath (id:String):String {
|
||||||
|
|
||||||
|
if (paths.exists (id)) {
|
||||||
|
|
||||||
return paths.get (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