From 9aa5d97271d56ae0e49d87caf27c0189f026acd0 Mon Sep 17 00:00:00 2001 From: Dustin Carlino Date: Wed, 21 Apr 2021 14:56:48 -0700 Subject: [PATCH] Select the newly created lane --- game/src/edit/roads.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/game/src/edit/roads.rs b/game/src/edit/roads.rs index fed0505b2d..fcd1ba8dc9 100644 --- a/game/src/edit/roads.rs +++ b/game/src/edit/roads.rs @@ -160,6 +160,8 @@ impl State for RoadEditor { apply_map_edits(ctx, app, edits); assert!(self.current_lane.is_none()); + self.current_lane = + Some(app.primary.map.get_r(self.r).lanes_ltr().last().unwrap().0); self.main_panel = make_main_panel(ctx, app, app.primary.map.get_r(self.r), self.current_lane); self.highlight_selection =