repo: janusweb action: commit revision: path_from: revision_from: e247f47ac3bdf8ebbbb2d1eb72589285b51e6903: path_to: revision_to:
commit e247f47ac3bdf8ebbbb2d1eb72589285b51e6903 Author: James BaicoianuDate: Fri Jul 26 14:02:20 2024 -0700 Skip invalid valueNodes in XR controller handling diff --git a/scripts/janusxrplayer.js b/scripts/janusxrplayer.js
--- a/scripts/janusxrplayer.js
+++ b/scripts/janusxrplayer.js
@@ -313,7 +313,7 @@ elation.require(['engine.things.generic', 'janusweb.external.webxr-input-profile
let visualResponse = component.visualResponses[k];
// Find the topmost node in the visualization
const valueNode = motionControllerRoot.getObjectByName(visualResponse.valueNodeName);
-
+ if (!valueNode) continue;
// Calculate the new properties based on the weight supplied
if (visualResponse.valueNodeProperty === 'visibility') {
valueNode.visible = visualResponse.value;
-----END OF PAGE-----