From 0f968342140bdf7ecbcb6ea50a452a427f41c5bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Sun, 8 Mar 2026 21:11:52 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20[rd]=203D=20=EA=B0=9C=ED=8F=90=20?= =?UTF-8?q?=EC=A1=B0=EC=A0=88=20=EC=8B=9C=20=EC=B9=B4=EB=A9=94=EB=9D=BC=20?= =?UTF-8?q?=EC=8B=9C=EC=A0=90=20=EC=9C=A0=EC=A7=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 셔터 개폐 슬라이더 조작 시 카메라 위치가 리셋되던 문제 수정 - 최초 빌드 시에만 카메라 초기화, 이후 재빌드에서는 현재 시점 유지 --- .../views/rd/fire-shutter-drawing/index.blade.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/resources/views/rd/fire-shutter-drawing/index.blade.php b/resources/views/rd/fire-shutter-drawing/index.blade.php index c47716a1..a55fb4df 100644 --- a/resources/views/rd/fire-shutter-drawing/index.blade.php +++ b/resources/views/rd/fire-shutter-drawing/index.blade.php @@ -965,6 +965,7 @@ function animate() { ro.observe(container); } + let fs3dCameraInit = false; function fs3dBuild() { if (!scene) return; // Clear existing meshes @@ -1195,10 +1196,13 @@ function fs3dBuild() { meshes.wall.position.set(0, (H + b.height) / 2, -rd / 2 - 50); scene.add(meshes.wall); - // Camera target - controls.target.set(0, H / 2, 0); - camera.position.set(W * 1.2, H * 0.8, W * 1.5); - controls.update(); + // Camera: 최초 빌드 시에만 위치 설정, 이후 재빌드 시 현재 시점 유지 + if (!fs3dCameraInit) { + controls.target.set(0, H / 2, 0); + camera.position.set(W * 1.2, H * 0.8, W * 1.5); + controls.update(); + fs3dCameraInit = true; + } } // 3D Controls