repo: janusweb
action: commit
revision: 
path_from: 
revision_from: fea89d3101ea6977031bbdc58ce89cdfd9f2e8fb:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit fea89d3101ea6977031bbdc58ce89cdfd9f2e8fb
Author: James Baicoianu 
Date:   Fri Nov 19 22:15:56 2021 -0800

    Minor optimization

diff --git a/scripts/janusxrplayer.js b/scripts/janusxrplayer.js
index 1c342ab14aca5bb3437e9c3351f8289ff57c48ee..
index ..00adf94c802691ae8b4d7980b05944e703ccf218 100644
--- a/scripts/janusxrplayer.js
+++ b/scripts/janusxrplayer.js
@@ -573,7 +573,7 @@ elation.require(['engine.things.generic', 'janusweb.external.webxr-input-profile
         this.laser.updateLine();
         this.cursor.pos.copy(endpoint);
         //this.cursor.zdir = normal;
-        if (this.cursor.room !== room) room.appendChild(this.cursor);
+        if (this.cursor.room !== room._target) room.appendChild(this.cursor);
         //this.cursor.zdir.copy(player.view_dir).multiplyScalar(-1);
         //this.cursor.zdir = normal;
         this.cursor.visible = true;

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