diff --git a/Source/HoudiniEngineRuntime/Private/HoudiniEngineRuntimeUtils.cpp b/Source/HoudiniEngineRuntime/Private/HoudiniEngineRuntimeUtils.cpp index cabd52fcb5..02ee89c46d 100755 --- a/Source/HoudiniEngineRuntime/Private/HoudiniEngineRuntimeUtils.cpp +++ b/Source/HoudiniEngineRuntime/Private/HoudiniEngineRuntimeUtils.cpp @@ -28,6 +28,7 @@ #include "HoudiniEngineRuntimePrivatePCH.h" #include "HoudiniRuntimeSettings.h" #include "LandscapeProxy.h" +#include "LandscapeInfo.h" #include "EngineUtils.h" #include "Engine/EngineTypes.h" @@ -483,6 +484,7 @@ FHoudiniEngineRuntimeUtils::MarkBlueprintAsModified(UActorComponent* ComponentTe FTransform FHoudiniEngineRuntimeUtils::CalculateHoudiniLandscapeTransform(ULandscapeInfo* LandscapeInfo) { +#if WITH_EDITOR ALandscapeProxy* LandscapeProxy = LandscapeInfo->GetLandscapeProxy(); FTransform OutTransform = LandscapeProxy->GetTransform(); @@ -521,6 +523,9 @@ FTransform FHoudiniEngineRuntimeUtils::CalculateHoudiniLandscapeTransform(ULands OutTransform.SetLocation(Loc); return OutTransform; +#else + return FTransform(); +#endif }