repo: janusweb
action: commit
revision: 
path_from: 
revision_from: e1539c10efed32feadb617a9ca87ac35f3c9b8e3:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit e1539c10efed32feadb617a9ca87ac35f3c9b8e3
Author: James Baicoianu 
Date:   Sun Jan 30 14:27:34 2022 -0800

    Support overridden transparency attribute

diff --git a/scripts/object.js b/scripts/object.js
index 26e3411d250e79692f18071ed45d61df5420a32c..
index ..42b571434aff8c32af12fcd0c809c04d4e48f677 100644
--- a/scripts/object.js
+++ b/scripts/object.js
@@ -731,7 +731,7 @@ elation.require(['janusweb.janusbase', 'janusweb.websurface'], function() {
                 });
               }

-              m.transparent = (textureasset && textureasset.hasalpha) || m.opacity < 1;
+              m.transparent = (this.transparent !== null ? this.transparent : (textureasset && textureasset.hasalpha) || m.opacity < 1);
             } else if (m.map && m.map.sourceFile) {
               var imagesrc = m.map.sourceFile;
               var asset = this.getAsset('image', imagesrc, true);

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