Allow asset with path and no ID

This commit is contained in:
Joshua Granick
2019-06-12 15:43:01 -07:00
parent b0d4f83ad5
commit 504458cd6a

View File

@@ -620,7 +620,7 @@ class AssetLibrary
for (asset in manifest.assets)
{
size = hasSize && Reflect.hasField(asset, "size") ? asset.size : 100;
id = asset.id;
id = Reflect.hasField(asset, "id") ? asset.id : asset.path;
if (Reflect.hasField(asset, "path"))
{
@@ -666,7 +666,7 @@ class AssetLibrary
for (asset in manifest.assets)
{
id = asset.id;
id = Reflect.hasField(asset, "id") ? asset.id : asset.path;
if (preload.exists(id) && preload.get(id))
{