Avoid use of redundant struct field

This commit is contained in:
Hanno Braun 2025-03-19 20:11:19 +01:00
parent 1cea537b4b
commit bf65384755

View File

@ -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(