diff --git a/build/three.js b/build/three.js index 35455105e61a724e10d0dd2ac32c58ea1156451e..6c4318536198b45e0d95125ff1abe3866451f478 100644 --- a/build/three.js +++ b/build/three.js @@ -22005,7 +22005,7 @@ controller.matrix.elements = inputPose.pointerMatrix; controller.matrix.decompose( controller.position, controller.rotation, controller.scale ); - controller.visible = true; + controller.visible = inputPose.emulatedPosition === false; continue; diff --git a/build/three.min.js b/build/three.min.js index ca7431f209a254f9620ce24d6241606764b478da..13aa42f141e01b71726a2224ab5685bfc7a3aa40 100644 --- a/build/three.min.js +++ b/build/three.min.js @@ -153,7 +153,7 @@ function(){b()&&e.submitFrame()};this.dispose=function(){"undefined"!==typeof wi h=null,l=null,n=null,y=[],m=[],t=new ba;t.layers.enable(1);t.viewport=new V;var q=new ba;q.layers.enable(2);q.viewport=new V;var k=new Ic([t,q]);k.layers.enable(1);k.layers.enable(2);this.enabled=!1;this.getController=function(a){var b=y[a];void 0===b&&(b=new Wb,b.matrixAutoUpdate=!1,b.visible=!1,y[a]=b);return b};this.getDevice=function(){return g};this.setDevice=function(a){void 0!==a&&(g=a);f.setCompatibleXRDevice(a)};this.setSession=function(b,e){h=b;null!==h&&(h.addEventListener("select",c), h.addEventListener("selectstart",c),h.addEventListener("selectend",c),h.addEventListener("end",d),h.baseLayer=new XRWebGLLayer(h,f),h.requestFrameOfReference(e.frameOfReferenceType).then(function(b){l=b;a.setFramebuffer(h.baseLayer.framebuffer);p.setContext(h);p.start()}),m=h.getInputSources(),h.addEventListener("inputsourceschange",function(){m=h.getInputSources();console.log(m)}))};this.getCamera=function(a){if(b()){var c=a.parent,d=k.cameras;e(k,c);for(var f=0;f