repo: janusweb action: commit revision: path_from: revision_from: b7951ad130f9d06e4ded0cea805dacdce5b9670c: path_to: revision_to:
commit b7951ad130f9d06e4ded0cea805dacdce5b9670c Author: James BaicoianuDate: Tue Mar 9 10:04:19 2021 -0800 Add enabled attribute for raycaster diff --git a/scripts/elements/raycaster.js b/scripts/elements/raycaster.js
--- a/scripts/elements/raycaster.js
+++ b/scripts/elements/raycaster.js
@@ -1,9 +1,11 @@
elation.require(['janusweb.janusbase'], function() {
elation.component.add('janusweb.elements.raycaster', {
+ enabled: true,
create() {
this.lasthitobject = null;
},
update() {
+ if (!this.enabled) return;
if (!this.fwdvec) {
this.fwdvec = V();
this.lasthitpos = V();
-----END OF PAGE-----