Return first path if Assets.getPath refers to a path group

This commit is contained in:
Joshua Granick
2018-03-06 09:51:38 -08:00
parent e5f44d5095
commit fd8ab4814e

View File

@@ -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;
}
}