From 649ec25cd3e86893721a0451680c244c1126230a Mon Sep 17 00:00:00 2001 From: Brandon Jones Date: Wed, 22 May 2024 14:27:59 -0700 Subject: [PATCH] Also add support for the new skipRendering WebXR flag --- .../three.js/examples/jsm/webxr/XRControllerModelFactory.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/third-party/three.js/examples/jsm/webxr/XRControllerModelFactory.js b/js/third-party/three.js/examples/jsm/webxr/XRControllerModelFactory.js index 26a5673..b230aa6 100644 --- a/js/third-party/three.js/examples/jsm/webxr/XRControllerModelFactory.js +++ b/js/third-party/three.js/examples/jsm/webxr/XRControllerModelFactory.js @@ -242,7 +242,7 @@ class XRControllerModelFactory { const xrInputSource = event.data; - if ( xrInputSource.targetRayMode !== 'tracked-pointer' || ! xrInputSource.gamepad || xrInputSource.hand ) return; + if ( xrInputSource.targetRayMode !== 'tracked-pointer' || ! xrInputSource.gamepad || xrInputSource.hand || xrInputSource.skipRendering === true ) return; fetchProfile( xrInputSource, this.path, DEFAULT_PROFILE ).then( ( { profile, assetPath } ) => {