Procházet zdrojové kódy

Fix bug when updating joints without requesting a hand in WebXR

Fernando Serrano před 5 roky
rodič
revize
18a83b9252
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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 ) {
 
 
-			if ( inputSource.hand ) {
+			if ( hand && inputSource.hand ) {
 
 
 				handPose = true;
 				handPose = true;