Select the newly created lane

This commit is contained in:
Dustin Carlino 2021-04-21 14:56:48 -07:00
parent 4ee50de58d
commit 9aa5d97271

View File

@ -160,6 +160,8 @@ impl State<App> 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 =