Update variable name

This commit is contained in:
Hanno Braun 2023-06-06 12:39:32 +02:00
parent 765e7fb309
commit 9c61771ecd

View File

@ -84,10 +84,10 @@ impl Viewer {
/// Compute and store a focus point, unless one is already stored
pub fn add_focus_point(&mut self) {
// Don't recompute the focus point unnecessarily.
if let Some(shape) = &self.model {
if let Some(model) = &self.model {
if self.focus_point.is_none() {
self.focus_point =
Some(self.camera.focus_point(self.cursor, shape));
Some(self.camera.focus_point(self.cursor, model));
}
}
}