Skip to content

Commit ccbb06d

Browse files
committed
fix unwrap that had no business of being there
1 parent 95acc3e commit ccbb06d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

crates/re_viewport/src/system_execution.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ pub fn execute_systems_for_space_views<'a>(
6363
) -> HashMap<SpaceViewId, (ViewQuery<'a>, SystemExecutionOutput)> {
6464
re_tracing::profile_function!();
6565

66+
let Some(time_int) = ctx.rec_cfg.time_ctrl.read().time_int() else {
67+
return HashMap::default();
68+
};
69+
6670
space_views_to_execute
6771
.par_drain(..)
6872
.filter_map(|space_view_id| {
@@ -71,11 +75,7 @@ pub fn execute_systems_for_space_views<'a>(
7175
space_views.get(&space_view_id).map(|space_view_blueprint| {
7276
(
7377
space_view_id,
74-
space_view_blueprint.execute_systems(
75-
ctx,
76-
ctx.rec_cfg.time_ctrl.read().time_int().unwrap(),
77-
highlights,
78-
),
78+
space_view_blueprint.execute_systems(ctx, time_int, highlights),
7979
)
8080
})
8181
})

0 commit comments

Comments
 (0)