Add support to geolocation to Datasmith API

#jira UE-180009
#preflight 642e78e7da7f9583702b9cff
#preflight 642e790df376ab43d22a9e35
#rb benoit.deschenes

[CL 24962394 by kerim borchaev in ue5-main branch]
This commit is contained in:
kerim borchaev
2023-04-07 00:37:27 -04:00
parent 80d4648824
commit 3248b6c4c5
12 changed files with 105 additions and 1 deletions
@@ -483,6 +483,19 @@ const TCHAR* FDatasmithFacadeScene::GetAssetsOutputPath() const
return SceneExporterRef->GetAssetsOutputPath();
}
void FDatasmithFacadeScene::SetGeolocation(double Latitude, double Longitude, double Elevation)
{
SceneRef->SetGeolocation(FVector(Latitude, Longitude, Elevation));
}
void FDatasmithFacadeScene::GetGeolocation(double& OutLatitude, double& OutLongitude, double& OutElevation) const
{
FVector Geolocation = SceneRef->GetGeolocation();
OutLatitude = Geolocation.X;
OutLongitude = Geolocation.Y;
OutElevation = Geolocation.Z;
}
void FDatasmithFacadeScene::Shutdown()
{
FDatasmithExporterManager::Shutdown();