瀏覽代碼

A-Frame plugin: add the crossOrigin attribute to reference images

customisations
alemart 6 月之前
父節點
當前提交
025e18a29a
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1
    0
      plugins/aframe-with-encantar.js

+ 1
- 0
plugins/aframe-with-encantar.js 查看文件

968
             throw new Error('Unspecified src attribute of ar-reference-image');
968
             throw new Error('Unspecified src attribute of ar-reference-image');
969
 
969
 
970
         const img = new Image();
970
         const img = new Image();
971
+        img.crossOrigin = 'anonymous';
971
         img.src = this.data.src;
972
         img.src = this.data.src;
972
 
973
 
973
         return {
974
         return {

Loading…
取消
儲存