repo: janusweb
action: commit
revision: 
path_from: 
revision_from: c437b7957474b7b3556dc0b956fce88cb192bae6:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit c437b7957474b7b3556dc0b956fce88cb192bae6
Author: James Baicoianu 
Date:   Tue Mar 10 23:21:13 2020 -0700

    Fix ambient light setting

diff --git a/scripts/room.js b/scripts/room.js
index 99ebde5dc1cfd52005a93e33f0b067389910f4da..
index ..879207543fbb64e37e4d531e565ed5240ec4ea04 100644
--- a/scripts/room.js
+++ b/scripts/room.js
@@ -158,7 +158,7 @@ elation.require([
     this.createLights = function() {
       this.roomlights = {
         ambient: this.spawn('light_ambient', this.id + '_ambient', {
-          color: this.properties.ambient._target
+          color: this.properties.ambient
         }),
         directional: this.spawn('light_directional', this.id + '_sun', {
           position: [-20,50,25],

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