Aaron/fixdigitaltwins windows (#7672)

* Fix OSM2ODR build

* Fixing UE4 DigitalTwins in Windows

* Deal windows specific code until find workaround on saving files

* Remove comments

---------

Co-authored-by: LuisPoveda <101111439+LuisPoveda@users.noreply.github.com>
This commit is contained in:
Blyron 2024-05-17 11:10:58 +02:00 committed by GitHub
parent 22fd085f67
commit 6886d25c13
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 6 additions and 3 deletions

View File

@ -30,9 +30,10 @@ if os.name == "nt":
editor_path = "%s/Engine/Binaries/%s/UE4Editor" % (ue4_path, sys_name)
command = [editor_path, uproject_path, run]
command.extend(arguments)
full_command = editor_path + " " + uproject_path + " " + run + " " + arguments
print("Commandlet:", command)
print("Arguments:", arguments)
subprocess.check_call(command, shell=True)
subprocess.check_call(full_command, shell=True)
elif os.name == "posix":
sys_name = "Linux"
editor_path = "%s/Engine/Binaries/%s/UE4Editor" % (ue4_path, sys_name)

View File

@ -293,11 +293,13 @@ AActor* UOpenDriveToMap::SpawnActorWithCheckNoCollisions(UClass* ActorClassToSpa
void UOpenDriveToMap::GenerateTileStandalone(){
UE_LOG(LogCarlaToolsMapGenerator, Log, TEXT("UOpenDriveToMap::GenerateTileStandalone Function called"));
#if PLATFORM_WINDOWS
GenerateTile();
#else
ExecuteTileCommandlet();
#endif
UEditorLoadingAndSavingUtils::SaveDirtyPackages(true, true);
UEditorLevelLibrary::SaveCurrentLevel();
}
void UOpenDriveToMap::GenerateTile(){