From bf653847550dff0899015e4f4b651fddd04f0ee9 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Wed, 19 Mar 2025 20:11:19 +0100 Subject: [PATCH] Avoid use of redundant struct field --- crates/fj-viewer/src/camera.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/fj-viewer/src/camera.rs b/crates/fj-viewer/src/camera.rs index e164a7048..39b200775 100644 --- a/crates/fj-viewer/src/camera.rs +++ b/crates/fj-viewer/src/camera.rs @@ -85,7 +85,7 @@ impl Camera { model: &Model, ) -> FocusPoint { self.calculate_focus_point(cursor, &model.mesh) - .unwrap_or_else(|| FocusPoint(model.aabb.center())) + .unwrap_or_else(|| FocusPoint(model.mesh.aabb().center())) } fn calculate_focus_point(