From f7789a5c7a6556cf7f4e56ebef9410b099d1903e Mon Sep 17 00:00:00 2001 From: Aymeric Rabot Date: Mon, 8 Jun 2026 01:10:04 -0400 Subject: [PATCH] Fix split view rotation sync direction --- packages/editor/src/components/editor/floorplan-panel.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/editor/src/components/editor/floorplan-panel.tsx b/packages/editor/src/components/editor/floorplan-panel.tsx index 390d3e48..fed7f7be 100644 --- a/packages/editor/src/components/editor/floorplan-panel.tsx +++ b/packages/editor/src/components/editor/floorplan-panel.tsx @@ -1684,13 +1684,13 @@ function nearestEquivalentDegrees(angle: number, reference: number) { function floorplanRotationFromCameraAzimuth(azimuth: number, reference: number) { return nearestEquivalentDegrees( - radiansToDegrees(azimuth) - FLOORPLAN_VIEW_ROTATION_DEG, + FLOORPLAN_VIEW_ROTATION_DEG - radiansToDegrees(azimuth), reference, ) } function cameraAzimuthFromFloorplanRotation(rotationDeg: number) { - return degreesToRadians(rotationDeg + FLOORPLAN_VIEW_ROTATION_DEG) + return degreesToRadians(FLOORPLAN_VIEW_ROTATION_DEG - rotationDeg) } function floorplanLocalToWorldPoint(