forked from organicmaps/organicmaps
[generator] Call cross-mwm transit build only for existing transit section.
This commit is contained in:
parent
834ee4c7ef
commit
0b589dd752
1 changed files with 6 additions and 2 deletions
|
@ -544,8 +544,12 @@ MAIN_WITH_ERROR_HANDLING([](int argc, char ** argv)
|
|||
|
||||
if (FLAGS_make_transit_cross_mwm_experimental)
|
||||
{
|
||||
routing::BuildTransitCrossMwmSection(path, dataFile, country, *countryParentGetter,
|
||||
transitEdgeFeatureIds, true /* experimentalTransit */);
|
||||
if (!transitEdgeFeatureIds.empty())
|
||||
{
|
||||
routing::BuildTransitCrossMwmSection(path, dataFile, country, *countryParentGetter,
|
||||
transitEdgeFeatureIds,
|
||||
true /* experimentalTransit */);
|
||||
}
|
||||
}
|
||||
else if (FLAGS_make_transit_cross_mwm)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue