소스 검색

fix: add xr input source hand check to prevent hand tracking model loading on connect (#29179)

Co-authored-by: jorodi <jorodi@mpb16>
jorodi 1 년 전
부모
커밋
3ddd8de878
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      examples/jsm/webxr/XRControllerModelFactory.js

+ 1 - 1
examples/jsm/webxr/XRControllerModelFactory.js

@@ -239,7 +239,7 @@ class XRControllerModelFactory {
 
 			const xrInputSource = event.data;
 
-			if ( xrInputSource.targetRayMode !== 'tracked-pointer' || ! xrInputSource.gamepad ) return;
+			if ( xrInputSource.targetRayMode !== 'tracked-pointer' || ! xrInputSource.gamepad || xrInputSource.hand ) return;
 
 			fetchProfile( xrInputSource, this.path, DEFAULT_PROFILE ).then( ( { profile, assetPath } ) => {
 

粤ICP备19079148号