diff --git a/src/asset/asset_registry.js b/src/asset/asset_registry.js index 662f205d0d1..423ea866642 100644 --- a/src/asset/asset_registry.js +++ b/src/asset/asset_registry.js @@ -376,6 +376,11 @@ pc.extend(pc, function () { } } + if (!count) { + callback(null, textures); + return; + } + for (i = 0; i < urls.length; i++) { self.loadFromUrl(urls[i], "texture", function (err, texture) { textures.push(texture);