mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
Fixed a dead loop when the file texture uuid is undefined for fireball/issues/4822
This commit is contained in:
@@ -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;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user