mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-05 10:28:27 +00:00
Inline redundant variable
This commit is contained in:
parent
a9debaccb3
commit
c97cd9ae2b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user