mirror of
https://github.com/hannobraun/Fornjot
synced 2025-03-01 02:25:59 +00:00
commit
d32c95762f
@ -36,8 +36,8 @@ impl Viewer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Access the cursor
|
/// Access the cursor
|
||||||
pub fn cursor(&self) -> Option<NormalizedScreenPosition> {
|
pub fn cursor(&mut self) -> &mut Option<NormalizedScreenPosition> {
|
||||||
self.cursor
|
&mut self.cursor
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Toggle the "draw model" setting
|
/// Toggle the "draw model" setting
|
||||||
|
@ -32,7 +32,7 @@ pub fn display(model: Model, invert_zoom: bool) -> Result<(), Error> {
|
|||||||
&event,
|
&event,
|
||||||
&window,
|
&window,
|
||||||
&held_mouse_button,
|
&held_mouse_button,
|
||||||
&mut viewer.cursor(),
|
viewer.cursor(),
|
||||||
invert_zoom,
|
invert_zoom,
|
||||||
);
|
);
|
||||||
if let Some(input_event) = input_event {
|
if let Some(input_event) = input_event {
|
||||||
|
Loading…
Reference in New Issue
Block a user