Просмотр исходного кода

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

customisations
alemart 6 месяцев назад
Родитель
Сommit
025e18a29a
1 измененных файлов: 1 добавлений и 0 удалений
  1. 1
    0
      plugins/aframe-with-encantar.js

+ 1
- 0
plugins/aframe-with-encantar.js Просмотреть файл

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

Загрузка…
Отмена
Сохранить