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)
|
void ACityMapGenerator::PreSave(const ITargetPlatform *TargetPlatform)
|
||||||
{
|
{
|
||||||
|
#if WITH_EDITOR
|
||||||
if (bGenerateRoadMapOnSave) {
|
if (bGenerateRoadMapOnSave) {
|
||||||
check(RoadMap != nullptr);
|
check(RoadMap != nullptr);
|
||||||
GenerateRoadMap();
|
GenerateRoadMap();
|
||||||
}
|
}
|
||||||
|
#endif // WITH_EDITOR
|
||||||
|
|
||||||
Super::PreSave(TargetPlatform);
|
Super::PreSave(TargetPlatform);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue