From 28030ea3fa3a239dc4d109564eb40aa66ff50850 Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Tue, 14 Apr 2026 12:53:29 +0900 Subject: [PATCH] Update engine.ts --- packages/frontend/src/utility/room/engine.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/packages/frontend/src/utility/room/engine.ts b/packages/frontend/src/utility/room/engine.ts index c2d15c07fd..c729c4f407 100644 --- a/packages/frontend/src/utility/room/engine.ts +++ b/packages/frontend/src/utility/room/engine.ts @@ -757,10 +757,13 @@ export class RoomEngine { }); if (_DEV_) { - const axes = new AxesViewer(this.scene, 30); - axes.xAxis.position = new BABYLON.Vector3(0, 30, 0); - axes.yAxis.position = new BABYLON.Vector3(0, 30, 0); - axes.zAxis.position = new BABYLON.Vector3(0, 30, 0); + // snapshot renderingかつglow layerが有効だとなんかクラッシュする + if (!(SNAPSHOT_RENDERING && USE_GLOW)) { + const axes = new AxesViewer(this.scene, 30); + axes.xAxis.position = new BABYLON.Vector3(0, 30, 0); + axes.yAxis.position = new BABYLON.Vector3(0, 30, 0); + axes.zAxis.position = new BABYLON.Vector3(0, 30, 0); + } (window as any).showBabylonInspector = () => { ShowInspector(this.scene);