Skip to content

Commit e6ca9f6

Browse files
committed
dedupe floor
1 parent 7647309 commit e6ca9f6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

crates/viewer/re_viewer_context/src/time_control.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,10 +364,11 @@ impl TimeControl {
364364
}
365365

366366
fn update_time(&mut self, blueprint_ctx: Option<&impl BlueprintContext>, time: TimeReal) {
367-
if self.time_int() != Some(time.floor())
367+
let time_int = time.floor();
368+
if self.time_int() != Some(time_int)
368369
&& let Some(blueprint_ctx) = blueprint_ctx
369370
{
370-
blueprint_ctx.set_time(time.floor());
371+
blueprint_ctx.set_time(time_int);
371372
}
372373

373374
self.set_time(time);

0 commit comments

Comments
 (0)