Sfoglia il codice sorgente

Fix bug when updating joints without requesting a hand in WebXR

Fernando Serrano 5 anni fa
parent
commit
18a83b9252
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/renderers/webxr/WebXRController.js

+ 1 - 1
src/renderers/webxr/WebXRController.js

@@ -135,7 +135,7 @@ Object.assign( WebXRController.prototype, {
 
 		if ( inputSource ) {
 
-			if ( inputSource.hand ) {
+			if ( hand && inputSource.hand ) {
 
 				handPose = true;