repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 47d7f0d20073b773a295b7c45ce444cda2a4a749:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 47d7f0d20073b773a295b7c45ce444cda2a4a749
Author: James Baicoianu 
Date:   Fri Oct 20 00:36:47 2017 -0700

    Only change opacity if the value changed

diff --git a/scripts/janusbase.js b/scripts/janusbase.js
index 45115f78ea49567b486a604b9a12804095102fe7..
index ..0cc8aaab0cb5f126a05e13d54b4aba2b0e0b22e7 100644
--- a/scripts/janusbase.js
+++ b/scripts/janusbase.js
@@ -510,7 +510,8 @@ console.error('dunno what this is', other);
       }
     }
     this.setOpacity = function(opacity) {
-      if (this.objects['3d']) {
+      if (this.objects['3d'] && this.currentopacity != opacity) {
+        this.currentopacity = opacity;
         this.objects['3d'].traverse(function(n) {
           if (n.material) {
             var m = (elation.utils.isArray(n.material) ? n.material : [n.material]);

-----END OF PAGE-----