Fix errors
This commit is contained in:
parent
620ed980a2
commit
0685b83555
@ -177,11 +177,13 @@ impl StandaloneReplayManager {
|
||||
}
|
||||
|
||||
pub fn fast_forward_to(&mut self, new_time: f64) {
|
||||
if let Some(playback) = &mut self.playback {
|
||||
playback.bind_mut().current_time = new_time;
|
||||
playback.bind_mut().current_frame_idx = 0;
|
||||
playback.bind_mut().fast_forwarding = true;
|
||||
}
|
||||
self.run_deferred(move |s| {
|
||||
if let Some(playback) = &mut s.playback {
|
||||
playback.bind_mut().current_time = new_time;
|
||||
playback.bind_mut().current_frame_idx = 0;
|
||||
playback.bind_mut().fast_forwarding = true;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -63,7 +63,7 @@ impl ReplayHud {
|
||||
slider.set_min(0.);
|
||||
slider.set_max(end_time);
|
||||
if set_value && !self.dragging {
|
||||
slider.set_value(current_time);
|
||||
slider.set_value_no_signal(current_time);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user