From 2175a3a18f125bd5a84b140b751fa5433fec6bc6 Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Thu, 16 Apr 2026 17:20:49 +0900 Subject: [PATCH] Update engine.ts --- packages/frontend/src/utility/room/engine.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/frontend/src/utility/room/engine.ts b/packages/frontend/src/utility/room/engine.ts index 29ab5d8162..4d65b5f1e0 100644 --- a/packages/frontend/src/utility/room/engine.ts +++ b/packages/frontend/src/utility/room/engine.ts @@ -738,9 +738,6 @@ export class RoomEngine extends EventEmitter { this.zGridPreviewPlane.isVisible = false; this.selectionOutlineLayer = new BABYLON.SelectionOutlineLayer('outliner', this.scene); - if (SNAPSHOT_RENDERING) { - this.sr.updateMeshesForEffectLayer(this.selectionOutlineLayer); - } if (_DEV_) { // snapshot renderingかつglow layerが有効だとなんかクラッシュする @@ -1456,11 +1453,13 @@ export class RoomEngine extends EventEmitter { } private highlightMeshes(meshes: BABYLON.AbstractMesh[]) { + if (this.engine.snapshotRendering) return; // snapshot rendering内でそのままやろうとするとエラーになる 回避実装もめんどいので単に無視 this.clearHighlight(); this.selectionOutlineLayer.addSelection(meshes); } private clearHighlight() { + if (this.engine.snapshotRendering) return; // snapshot rendering内でそのままやろうとするとエラーになる 回避実装もめんどいので単に無視 this.selectionOutlineLayer.clearSelection(); } @@ -1826,6 +1825,7 @@ export class RoomEngine extends EventEmitter { public async exitEditMode() { this.isEditMode = false; + this.selectObject(null); await this.bake();