From e247fa6f39b10554e4296088c628bb065dbded04 Mon Sep 17 00:00:00 2001 From: mrmaxm Date: Tue, 20 Feb 2024 13:25:24 +0200 Subject: [PATCH] enable hand tracking for AR and VR --- src/framework/xr/xr-manager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/framework/xr/xr-manager.js b/src/framework/xr/xr-manager.js index 83a41de5558..6e9c167399f 100644 --- a/src/framework/xr/xr-manager.js +++ b/src/framework/xr/xr-manager.js @@ -486,10 +486,10 @@ class XrManager extends EventHandler { if (webgl && options && options.cameraColor && this.views.supportedColor) { opts.optionalFeatures.push('camera-access'); } - } else if (type === XRTYPE_VR) { - opts.optionalFeatures.push('hand-tracking'); } + opts.optionalFeatures.push('hand-tracking'); + if (options && options.optionalFeatures) opts.optionalFeatures = opts.optionalFeatures.concat(options.optionalFeatures);