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