Don't draw border intersection outlines when they're filtered
@@ -199,7 +199,6 @@ fn make_world(
for (idx, cell) in neighborhood.cells.iter().enumerate() {
let color = render_cells.colors[idx];
for i in &cell.borders {
- if app.session.draw_borders_as_arrows {
let angles: Vec<Angle> = cell
.roads
.keys()
@@ -207,7 +206,7 @@ fn make_world(
let road = map.get_r(*r);
// Design choice: when we have a filter right at the entrance of a
// neighborhood, it creates its own little cell allowing access to just the
- // very beginning of the road. Let's not draw arrows for that.
+ // very beginning of the road. Let's not draw anything for that.
if app.session.modal_filters.roads.contains_key(r) {
None
} else if road.src_i == *i {
@@ -223,6 +222,8 @@ fn make_world(
if angles.is_empty() {
continue;
}
+
+ if app.session.draw_borders_as_arrows {
let center = map.get_i(*i).polygon.center();
let angle = Angle::average(angles);
