repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 1c87851a87a63525a95043f92cf95b9f9a136815:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 1c87851a87a63525a95043f92cf95b9f9a136815
Author: James Baicoianu 
Date:   Fri Mar 25 06:30:55 2016 -0700

    Parse SBS3D image properties

diff --git a/scripts/room.js b/scripts/room.js
index f82efd8a07bd4fcba124f8f4eb0fabb25f5f3f4b..
index ..9e811b034d3b16980482b29247aef06a5abac865 100644
--- a/scripts/room.js
+++ b/scripts/room.js
@@ -1,6 +1,6 @@
 elation.require([
     'ui.textarea', 'ui.window', 
-     'engine.external.xmldom', 'engine.things.generic', 'engine.things.sound', 'engine.things.label', 
+     'engine.things.generic', 'engine.things.sound', 'engine.things.label', 
     'janusweb.object', 'janusweb.portal', 'janusweb.image', 'janusweb.video', 'janusweb.text'
   ], function() {
   elation.component.add('engine.things.janusroom', function() {
@@ -324,8 +324,19 @@ elation.require([
           'orientation': node.orientation,
           'scale': node.scale,
           'image_id': n.id,
-          'color': node.col,
+          'color': node.col
         }; 
+        var asset = false;
+        assets.image.forEach(function(img) {
+          if (img.id == n.id) {
+            asset = img;
+          }
+        });
+
+        if (asset) {
+          imageargs.sbs3d = asset.sbs3d;
+          imageargs.reverse3d = asset.reverse3d;
+        }
         var image = root.spawn('janusimage', n.id + '_' + Math.round(Math.random() * 10000), imageargs);
       }));
       image3ds.forEach(elation.bind(this, function(n) {

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