diff --git a/src/art/artJS.js b/src/art/artJS.js index 32beb654a48ee212fe68481ec8ef9ae4fa36c4f3..d37868320dab2f5963db9a09749ddc34759b87b9 100644 --- a/src/art/artJS.js +++ b/src/art/artJS.js @@ -256,7 +256,12 @@ App.Art.webglArtElement = function(slave, artSize) { btnViewReset.setAttribute("style", "display: flex; width: 100%; position: relative; border: 0px; padding: 0px; background-color: transparent;"); btnViewReset.setAttribute("type", "image"); - btnViewReset.setAttribute("src", App.Art.UIStrings.viewResetDisabled); + + if((slave.sceneParams.transform.y != App.Art.defaultSceneParams.transform.y) || (slave.sceneParams.transform.y != App.Art.defaultSceneParams.transform.yr) || + (slave.sceneParams.camera.fov != App.Art.defaultSceneParams.camera.fov)) + btnViewReset.setAttribute("src", App.Art.UIStrings.viewResetEnabled); + else + btnViewReset.setAttribute("src", App.Art.UIStrings.viewResetDisabled); btnViewReset.onclick= function(e){ btnViewReset.src = App.Art.UIStrings.viewResetDisabled;