Skip to content

Commit

Permalink
call fallback fallback no default
Browse files Browse the repository at this point in the history
  • Loading branch information
abey79 committed Oct 25, 2024
1 parent 920dbfd commit 6dc47cf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crates/viewer/re_space_view_map/src/visualizers/geo_points.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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!(
Expand Down

0 comments on commit 6dc47cf

Please sign in to comment.