Generate road map on save only with editor
This commit is contained in:
parent
8faea3b566
commit
aeccb7c130
|
@ -35,10 +35,12 @@ ACityMapGenerator::~ACityMapGenerator() {}
|
|||
|
||||
void ACityMapGenerator::PreSave(const ITargetPlatform *TargetPlatform)
|
||||
{
|
||||
#if WITH_EDITOR
|
||||
if (bGenerateRoadMapOnSave) {
|
||||
check(RoadMap != nullptr);
|
||||
GenerateRoadMap();
|
||||
}
|
||||
#endif // WITH_EDITOR
|
||||
|
||||
Super::PreSave(TargetPlatform);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue