mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-15 15:28:31 +00:00
Avoid use of redundant struct field
This commit is contained in:
parent
1cea537b4b
commit
bf65384755
@ -85,7 +85,7 @@ impl Camera {
|
|||||||
model: &Model,
|
model: &Model,
|
||||||
) -> FocusPoint {
|
) -> FocusPoint {
|
||||||
self.calculate_focus_point(cursor, &model.mesh)
|
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(
|
fn calculate_focus_point(
|
||||||
|
Loading…
Reference in New Issue
Block a user