Browse Source

WebXRManager: Hide controllers when exiting VR.

Mr.doob 5 năm trước cách đây
mục cha
commit
19d65aa9a6
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      src/renderers/webxr/WebXRManager.js

+ 1 - 0
src/renderers/webxr/WebXRManager.js

@@ -83,6 +83,7 @@ function WebXRManager( renderer, gl ) {
 		inputSourcesMap.forEach( function ( controller, inputSource ) {
 
 			controller.dispatchEvent( { type: 'disconnected', data: inputSource } );
+			controller.visible = false;
 
 		} );