Add undef CreateDirectory to avoid Windows compile error
This commit is contained in:
parent
c0d259655b
commit
a8762db652
|
@ -453,6 +453,7 @@ void UCustomTerrainPhysicsComponent::BeginPlay()
|
|||
SavePath = FPaths::ConvertRelativePathToFull(FPaths::ProjectSavedDir()) + LevelName + "_Terrain/";
|
||||
// Creating the FileManager
|
||||
IPlatformFile& FileManager = FPlatformFileManager::Get().GetPlatformFile();
|
||||
#undef CreateDirectory
|
||||
if( FileManager.CreateDirectory(*SavePath)){
|
||||
UE_LOG(LogCarla, Warning,
|
||||
TEXT("Folder was created at %s"), *SavePath);
|
||||
|
|
Loading…
Reference in New Issue