Skip to content
This repository was archived by the owner on Dec 18, 2025. It is now read-only.

Commit 1aedaef

Browse files
Update multiple viewers
1 parent bf50c49 commit 1aedaef

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

viewers/templates/3DM Viewer.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1855,7 +1855,7 @@
18551855

18561856
png_tex.flipY = false;
18571857

1858-
if (equi_enabled === true) {
1858+
if (document.getElementById('equi').checked) {
18591859
png_tex.mapping = THREE.EquirectangularReflectionMapping;
18601860
scene.background = png_tex.clone();
18611861
scene.environment = png_tex.clone();
@@ -1878,7 +1878,7 @@
18781878
texture_loader.load( URL.createObjectURL( fii ) , function( texture ) {
18791879
URL.revokeObjectURL( fii );
18801880

1881-
if (equi_enabled === true) {
1881+
if (document.getElementById('equi').checked) {
18821882
texture.mapping = THREE.EquirectangularReflectionMapping;
18831883
scene.background = texture.clone();
18841884
scene.environment = texture.clone();

viewers/templates/3DS Viewer.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1786,7 +1786,7 @@
17861786

17871787
png_tex.flipY = false;
17881788

1789-
if (equi_enabled === true) {
1789+
if (document.getElementById('equi').checked) {
17901790
png_tex.mapping = THREE.EquirectangularReflectionMapping;
17911791
scene.background = png_tex.clone();
17921792
scene.environment = png_tex.clone();
@@ -1809,7 +1809,7 @@
18091809
texture_loader.load( URL.createObjectURL( fii ) , function( texture ) {
18101810
URL.revokeObjectURL( fii );
18111811

1812-
if (equi_enabled === true) {
1812+
if (document.getElementById('equi').checked) {
18131813
texture.mapping = THREE.EquirectangularReflectionMapping;
18141814
scene.background = texture.clone();
18151815
scene.environment = texture.clone();

viewers/templates/3MF Viewer.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1819,7 +1819,7 @@
18191819

18201820
png_tex.flipY = false;
18211821

1822-
if (equi_enabled === true) {
1822+
if (document.getElementById('equi').checked) {
18231823
png_tex.mapping = THREE.EquirectangularReflectionMapping;
18241824
scene.background = png_tex.clone();
18251825
scene.environment = png_tex.clone();
@@ -1842,7 +1842,7 @@
18421842
texture_loader.load( URL.createObjectURL( fii ) , function( texture ) {
18431843
URL.revokeObjectURL( fii );
18441844

1845-
if (equi_enabled === true) {
1845+
if (document.getElementById('equi').checked) {
18461846
texture.mapping = THREE.EquirectangularReflectionMapping;
18471847
scene.background = texture.clone();
18481848
scene.environment = texture.clone();

viewers/templates/DAE Viewer.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1904,7 +1904,7 @@
19041904

19051905
png_tex.flipY = false;
19061906

1907-
if (equi_enabled === true) {
1907+
if (document.getElementById('equi').checked) {
19081908
png_tex.mapping = THREE.EquirectangularReflectionMapping;
19091909
scene.background = png_tex.clone();
19101910
scene.environment = png_tex.clone();
@@ -1927,7 +1927,7 @@
19271927
texture_loader.load( URL.createObjectURL( fii ) , function( texture ) {
19281928
URL.revokeObjectURL( fii );
19291929

1930-
if (equi_enabled === true) {
1930+
if (document.getElementById('equi').checked) {
19311931
texture.mapping = THREE.EquirectangularReflectionMapping;
19321932
scene.background = texture.clone();
19331933
scene.environment = texture.clone();

viewers/templates/DST Viewer.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1536,7 +1536,7 @@
15361536

15371537
png_tex.flipY = false;
15381538

1539-
if (equi_enabled === true) {
1539+
if (document.getElementById('equi').checked) {
15401540
png_tex.mapping = THREE.EquirectangularReflectionMapping;
15411541
scene.background = png_tex.clone();
15421542
scene.environment = png_tex.clone();
@@ -1559,7 +1559,7 @@
15591559
texture_loader.load( URL.createObjectURL( fii ) , function( texture ) {
15601560
URL.revokeObjectURL( fii );
15611561

1562-
if (equi_enabled === true) {
1562+
if (document.getElementById('equi').checked) {
15631563
texture.mapping = THREE.EquirectangularReflectionMapping;
15641564
scene.background = texture.clone();
15651565
scene.environment = texture.clone();

viewers/templates/FBX Viewer.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1830,7 +1830,7 @@
18301830

18311831
png_tex.flipY = false;
18321832

1833-
if (equi_enabled === true) {
1833+
if (document.getElementById('equi').checked) {
18341834
png_tex.mapping = THREE.EquirectangularReflectionMapping;
18351835
scene.background = png_tex.clone();
18361836
scene.environment = png_tex.clone();
@@ -1853,7 +1853,7 @@
18531853
texture_loader.load( URL.createObjectURL( fii ) , function( texture ) {
18541854
URL.revokeObjectURL( fii );
18551855

1856-
if (equi_enabled === true) {
1856+
if (document.getElementById('equi').checked) {
18571857
texture.mapping = THREE.EquirectangularReflectionMapping;
18581858
scene.background = texture.clone();
18591859
scene.environment = texture.clone();

0 commit comments

Comments
 (0)