From a0c47f9a04f06a05b9ce59591c9dc73da9e89893 Mon Sep 17 00:00:00 2001 From: Chris Price Date: Sun, 29 May 2022 21:23:19 +0100 Subject: [PATCH] Fix camera rotation around focus point --- crates/fj-viewer/src/input/rotation.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/fj-viewer/src/input/rotation.rs b/crates/fj-viewer/src/input/rotation.rs index 63d7b9a1e8..9e048a6376 100644 --- a/crates/fj-viewer/src/input/rotation.rs +++ b/crates/fj-viewer/src/input/rotation.rs @@ -43,7 +43,7 @@ impl Rotation { let inv = trans.inverse(); - camera.rotation = trans * rot_y * rot_x * inv * camera.rotation; + camera.rotation = camera.rotation * trans * rot_y * rot_x * inv; } } }