From 40a452f669f047a2872fad594cc864062383e584 Mon Sep 17 00:00:00 2001 From: krikienoid Date: Sun, 19 Feb 2023 01:45:50 -0500 Subject: [PATCH] Bugfix: Update camera position while animation is stopped --- src/assets/js/app/components/CameraControlPanel.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/assets/js/app/components/CameraControlPanel.js b/src/assets/js/app/components/CameraControlPanel.js index c3b8889..242edc1 100644 --- a/src/assets/js/app/components/CameraControlPanel.js +++ b/src/assets/js/app/components/CameraControlPanel.js @@ -57,6 +57,8 @@ function CameraControlPanel({ app }) { useEffect(() => { const handleChange = () => { + app.refresh(); + setRadius(orbitControls.getDistance()); setTheta(orbitControls.getAzimuthalAngle()); setPhi(orbitControls.getPolarAngle());