Skip to content

Commit

Permalink
[FIX] engine only material loading when there are no textures
Browse files Browse the repository at this point in the history
  • Loading branch information
vkalpias committed Jul 26, 2015
1 parent 202ce34 commit 96b4683
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/asset/asset_registry.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 96b4683

Please sign in to comment.