From 6dc47cf3b878316d9604b8d9989a5c09e3c66835 Mon Sep 17 00:00:00 2001 From: Antoine Beyeler Date: Fri, 25 Oct 2024 12:29:38 +0200 Subject: [PATCH] call fallback fallback no default --- .../re_space_view_map/src/visualizers/geo_points.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/viewer/re_space_view_map/src/visualizers/geo_points.rs b/crates/viewer/re_space_view_map/src/visualizers/geo_points.rs index 61b6262fd452..f71008992182 100644 --- a/crates/viewer/re_space_view_map/src/visualizers/geo_points.rs +++ b/crates/viewer/re_space_view_map/src/visualizers/geo_points.rs @@ -57,10 +57,10 @@ impl VisualizerSystem for GeoPointsVisualizer { let all_colors = results.iter_as(timeline, Color::name()); let all_radii = results.iter_as(timeline, Radius::name()); - // default component values - let default_color: Color = + // fallback component values + let fallback_color: Color = self.fallback_for(&ctx.query_context(data_result, &view_query.latest_at_query())); - let default_radius: Radius = + let fallback_radius: Radius = self.fallback_for(&ctx.query_context(data_result, &view_query.latest_at_query())); // iterate over each chunk and find all relevant component slices @@ -77,8 +77,8 @@ impl VisualizerSystem for GeoPointsVisualizer { let radii = radii.as_ref().map(|r| r.as_slice()).unwrap_or(&[]); // optional components values to be used for instance clamping semantics - let last_color = colors.last().copied().unwrap_or(default_color); - let last_radii = radii.last().copied().unwrap_or(default_radius); + let last_color = colors.last().copied().unwrap_or(fallback_color); + let last_radii = radii.last().copied().unwrap_or(fallback_radius); // iterate over all instances for (position, color, radius) in itertools::izip!(