From 63448f4469b5687cb6b0236bfcb34d562a5501ee Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Thu, 14 Nov 2024 17:46:55 +0100 Subject: [PATCH] Inline redundant variable --- crates/fj-viewer/src/input/rotation.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/fj-viewer/src/input/rotation.rs b/crates/fj-viewer/src/input/rotation.rs index c1c28e63b..6263c3312 100644 --- a/crates/fj-viewer/src/input/rotation.rs +++ b/crates/fj-viewer/src/input/rotation.rs @@ -15,10 +15,9 @@ impl Rotation { // the model rotates not the camera, so invert the transform let camera_rotation = camera.rotation.inverse(); - let right_vector = camera_rotation.right(); let up_vector = up_vector(&camera_rotation); - let rotation = Transform::rotation(right_vector * angle_x) + let rotation = Transform::rotation(camera_rotation.right() * angle_x) * Transform::rotation(up_vector * angle_y); let transform = camera.camera_to_model()