Explorar el Código

Merge pull request #19983 from fernandojsg/fixhand

Fix bug when updating joints without requesting a hand in WebXR
Mr.doob hace 5 años
padre
commit
c1857a3ac0
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;
 

粤ICP备19079148号