Fixed package RecastBuilder call path

This commit is contained in:
Marc Garcia Puig 2020-03-05 16:16:46 +01:00
parent 0f88b0b8cb
commit 1fa0400d9c
1 changed files with 4 additions and 2 deletions

View File

@ -120,7 +120,7 @@ static FString BuildRecastBuilderFile()
// Define path depending on the UE4 build type (Package or Editor) // Define path depending on the UE4 build type (Package or Editor)
#if UE_BUILD_SHIPPING #if UE_BUILD_SHIPPING
const FString AbsoluteRecastBuilderPath = FPaths::ConvertRelativePathToFull( const FString AbsoluteRecastBuilderPath = FPaths::ConvertRelativePathToFull(
FPaths::ProjectDir() + "Tools/" + RecastToolName); FPaths::RootDir() + "Tools/" + RecastToolName);
#else #else
const FString AbsoluteRecastBuilderPath = FPaths::ConvertRelativePathToFull( const FString AbsoluteRecastBuilderPath = FPaths::ConvertRelativePathToFull(
FPaths::ProjectDir() + "../../Util/DockerUtils/dist/" + RecastToolName); FPaths::ProjectDir() + "../../Util/DockerUtils/dist/" + RecastToolName);
@ -180,9 +180,11 @@ bool UCarlaEpisode::LoadNewOpendriveEpisode(const FString &OpenDriveString)
if (FPaths::FileExists(AbsoluteRecastBuilderPath)) if (FPaths::FileExists(AbsoluteRecastBuilderPath))
{ {
/// @todo this can take too long to finish, clients need a method
/// to know if the navigation is available or not.
FPlatformProcess::CreateProc( FPlatformProcess::CreateProc(
*AbsoluteRecastBuilderPath, *AbsoluteOBJPath, *AbsoluteRecastBuilderPath, *AbsoluteOBJPath,
true, false, false, nullptr, 0, nullptr, nullptr); true, true, true, nullptr, 0, nullptr, nullptr);
} }
else else
{ {