From c500d08ed7e14e7ecbec76393a4a1c13e59d4dec Mon Sep 17 00:00:00 2001 From: Vitaly Turovsky Date: Tue, 27 May 2025 11:30:21 +0300 Subject: [PATCH] hotfix: restore hand --- renderer/viewer/three/worldrendererThree.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/renderer/viewer/three/worldrendererThree.ts b/renderer/viewer/three/worldrendererThree.ts index f8641ab8..d2d54998 100644 --- a/renderer/viewer/three/worldrendererThree.ts +++ b/renderer/viewer/three/worldrendererThree.ts @@ -474,10 +474,10 @@ export class WorldRendererThree extends WorldRendererCommon { const cam = this.cameraGroupVr instanceof THREE.Group ? this.cameraGroupVr.children.find(child => child instanceof THREE.PerspectiveCamera) as THREE.PerspectiveCamera : this.camera this.renderer.render(this.scene, cam) - // if (this.displayOptions.inWorldRenderingConfig.showHand && !this.playerState.shouldHideHand /* && !this.freeFlyMode */) { - // this.holdingBlock.render(this.camera, this.renderer, this.ambientLight, this.directionalLight) - // this.holdingBlockLeft.render(this.camera, this.renderer, this.ambientLight, this.directionalLight) - // } + if (this.displayOptions.inWorldRenderingConfig.showHand && !this.playerState.shouldHideHand /* && !this.freeFlyMode */ && !this.renderer.xr.isPresenting) { + this.holdingBlock.render(this.camera, this.renderer, this.ambientLight, this.directionalLight) + this.holdingBlockLeft.render(this.camera, this.renderer, this.ambientLight, this.directionalLight) + } for (const fountain of this.fountains) { if (this.sectionObjects[fountain.sectionId] && !this.sectionObjects[fountain.sectionId].foutain) {