repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 8ef08a119078fcca55b894e66115a54e8dc20956:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 8ef08a119078fcca55b894e66115a54e8dc20956
Author: James Baicoianu 
Date:   Tue May 29 09:00:36 2018 -0700

    Fix room orientation for translators

diff --git a/scripts/room.js b/scripts/room.js
index 66ca5cf7b9bbc3bdfeb8e6e98f7d6098756efc22..
index ..551b9869b78802699831e99a0503d4f9e3d8191e 100644
--- a/scripts/room.js
+++ b/scripts/room.js
@@ -652,6 +652,10 @@ elation.require([
         if (room.pos) {
           this.spawnpoint.position.fromArray(room.pos);
         }
+        if (room.xdir || room.ydir || room.zdir) {
+          room.orientation = this.janus.parser.getOrientation(room.xdir, room.ydir, room.zdir);
+        }
+
         if (room.orientation) {
           this.spawnpoint.quaternion.copy(room.orientation);
           this.spawnpoint.quaternion.multiply(new THREE.Quaternion().setFromEuler(new THREE.Euler(0,Math.PI,0))); // Janus Native starts the player backwards

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