repo: janusweb action: commit revision: path_from: revision_from: 9a4dcdb9758b19ce506b94047e5274e50ccfb5a1: path_to: revision_to:
commit 9a4dcdb9758b19ce506b94047e5274e50ccfb5a1 Author: James BaicoianuDate: Sat Feb 3 12:44:08 2018 +0000 Don't try to raycast if room isn't set diff --git a/scripts/janusbase.js b/scripts/janusbase.js
--- a/scripts/janusbase.js
+++ b/scripts/janusbase.js
@@ -672,6 +672,7 @@ console.error('dunno what this is', other);
var _pos = new THREE.Vector3(),
_dir = new THREE.Vector3(0,0,-1);
return function(dir, offset, classname) {
+ if (!this.room) return [];
if (dir) {
_dir.copy(dir);
} else {
-----END OF PAGE-----