repo: janusweb action: commit revision: path_from: revision_from: 47d7f0d20073b773a295b7c45ce444cda2a4a749: path_to: revision_to:
commit 47d7f0d20073b773a295b7c45ce444cda2a4a749 Author: James BaicoianuDate: 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
--- 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-----