repo: janusweb action: commit revision: path_from: revision_from: 190700dee91a41d5b9995cdcbe7cde97b9a2a151: path_to: revision_to:
commit 190700dee91a41d5b9995cdcbe7cde97b9a2a151 Author: James BaicoianuDate: Mon May 27 13:29:32 2024 -0700 Don't try to render progressive-loading rooms when in XR diff --git a/scripts/room.js b/scripts/room.js
--- a/scripts/room.js
+++ b/scripts/room.js
@@ -1886,6 +1886,10 @@ elation.require([
}
}
*/
+ // FIXME - hack to disable XR rendering while room is still loading. this can be handled better.
+ if (this.engine.systems.render.views.xr && this.engine.systems.render.renderer.xr.isPresenting) {
+ this.engine.systems.render.views.xr.enabled = this.completed;
+ }
this.janus.scriptframeargs[0] = ev.data.delta * 1000;
elation.events.fire({element: this, type: 'janusweb_script_frame', data: ev.data.delta});
elation.events.fire({element: this, type: 'janusweb_script_frame_end', data: ev.data.delta});
-----END OF PAGE-----