Skip to content

Commit

Permalink
Version 2
Browse files Browse the repository at this point in the history
Fix HoudiniEngineRuntimeUtils build errors.
  • Loading branch information
Van committed Mar 15, 2022
1 parent 8133c3f commit b8fbecb
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include "HoudiniEngineRuntimePrivatePCH.h"
#include "HoudiniRuntimeSettings.h"
#include "LandscapeProxy.h"
#include "LandscapeInfo.h"

#include "EngineUtils.h"
#include "Engine/EngineTypes.h"
Expand Down Expand Up @@ -483,6 +484,7 @@ FHoudiniEngineRuntimeUtils::MarkBlueprintAsModified(UActorComponent* ComponentTe

FTransform FHoudiniEngineRuntimeUtils::CalculateHoudiniLandscapeTransform(ULandscapeInfo* LandscapeInfo)
{
#if WITH_EDITOR
ALandscapeProxy* LandscapeProxy = LandscapeInfo->GetLandscapeProxy();
FTransform OutTransform = LandscapeProxy->GetTransform();

Expand Down Expand Up @@ -521,6 +523,9 @@ FTransform FHoudiniEngineRuntimeUtils::CalculateHoudiniLandscapeTransform(ULands
OutTransform.SetLocation(Loc);

return OutTransform;
#else
return FTransform();
#endif
}


Expand Down

0 comments on commit b8fbecb

Please sign in to comment.