repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 2178dd23d5fd9e17cee3bfa3a1661b37e6bff9be:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 2178dd23d5fd9e17cee3bfa3a1661b37e6bff9be
Author: James Baicoianu 
Date:   Sun Oct 16 19:47:15 2016 -0700

    Don't replace object color unless color property has been explicitly set

diff --git a/scripts/object.js b/scripts/object.js
index 3e133209162bacd5bddd2a9f15754b55fb092d0a..
index ..b0012b73154777b0524452e69ac699d8250cd036 100644
--- a/scripts/object.js
+++ b/scripts/object.js
@@ -160,7 +160,9 @@ elation.require(['janusweb.janusbase'], function() {
           this.videotexture = texture;
         }
       }
-      color = this.properties.color;
+      if (this.properties.color !== this.defaultcolor) {
+        color = this.properties.color;
+      }
 /*
       if (this.properties.col) {
         var col = this.properties.col;

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