From c97cd9ae2ba39513bb04aaa4768ea3b735652101 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Thu, 14 Nov 2024 17:48:30 +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 4a76fb22f..3c4fe43d3 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 up_vector = camera_rotation.up(); let rotation = Transform::rotation(camera_rotation.right() * angle_x) - * Transform::rotation(up_vector * angle_y); + * Transform::rotation(camera_rotation.up() * angle_y); let transform = camera.camera_to_model() * rotate_around