Skip to content

Commit

Permalink
Also add support for the new skipRendering WebXR flag
Browse files Browse the repository at this point in the history
  • Loading branch information
toji committed May 22, 2024
1 parent 26acbbc commit 649ec25
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 } ) => {

Expand Down

0 comments on commit 649ec25

Please sign in to comment.