From fd8ab4814eccf0bdfcc3802fa5126dac8ed165bd Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Tue, 6 Mar 2018 09:51:38 -0800 Subject: [PATCH] Return first path if Assets.getPath refers to a path group --- lime/utils/AssetLibrary.hx | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/lime/utils/AssetLibrary.hx b/lime/utils/AssetLibrary.hx index 6c7029390..20385f4ae 100644 --- a/lime/utils/AssetLibrary.hx +++ b/lime/utils/AssetLibrary.hx @@ -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; + + } }