diff --git a/js/Sprite.js b/js/Sprite.js index 4fb17d2..d14aa7b 100644 --- a/js/Sprite.js +++ b/js/Sprite.js @@ -140,7 +140,10 @@ Sprite.prototype.attach = function(scene) { }); scene.append($(sprite.textures[c])); }) - .attr('src', io.asset_base + this.costumes[c].baseLayerMD5 + io.asset_suffix); + .attr({ + 'crossOrigin': 'annonymous', + 'src': io.asset_base + this.costumes[c].baseLayerMD5 + io.asset_suffix + }); } this.mesh = this.textures[this.currentCostumeIndex];