mirror of
https://github.com/a-b-street/abstreet.git
synced 2025-01-03 03:47:23 +03:00
Select the newly created lane
This commit is contained in:
parent
4ee50de58d
commit
9aa5d97271
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user