Workaround a crash trying to render building 4582 in Green Lake, which
has a short driveway that's crashing make_polygons.
This is more fallout from the f64 serialization change. I don't
understand the root cause yet...
@@ -214,7 +214,7 @@ impl DrawBuilding {
)
.map(|(pl, _)| pl)
.unwrap_or_else(|_| orig_pl.clone());
-
+ if driveway.length() > Distance::meters(0.1) {
batch.push(
if opts.color_scheme == ColorSchemeChoice::NightMode {
Color::hex("#4B4B4B")
@@ -228,6 +228,7 @@ impl DrawBuilding {
);
}
}
+ }
pub fn clear_rendering(&mut self) {
*self.label.borrow_mut() = None;
