Fixed a dead loop when the file texture uuid is undefined for fireball/issues/4822

This commit is contained in:
knoxHuang
2016-11-30 14:18:26 +08:00
parent 4ec85caeef
commit cd98111312
+4
View File
@@ -918,6 +918,10 @@ var ParticleSystem = cc.Class({
// so use the texutreUuid instead of textureImageData
if (content.textureUuid) {
cc.AssetLibrary.queryAssetInfo(content.textureUuid, function (err, url, raw) {
if (err) {
cc.error(err);
return;
}
self.texture = url;
});
}