mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-11-28 03:35:51 +03:00
persist raw map artifact during oneshot import
This commit is contained in:
parent
530a9ee4e4
commit
66220e0a57
@ -225,6 +225,11 @@ fn oneshot(osm_path: String, clip: Option<String>, drive_on_right: bool, build_c
|
||||
},
|
||||
&mut timer,
|
||||
);
|
||||
|
||||
// Often helpful to save intermediate representation in case user
|
||||
// wants to load into map_editor
|
||||
abstutil::write_binary(abstutil::path_raw_map(&name), &raw);
|
||||
|
||||
let map = map_model::Map::create_from_raw(raw, build_ch, &mut timer);
|
||||
timer.start("save map");
|
||||
map.save();
|
||||
|
Loading…
Reference in New Issue
Block a user