Skip to content

Commit 6567dfb

Browse files
committed
fixed for ue 4.26-5.0 preview 2
1 parent 48942ef commit 6567dfb

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Source/UnrealMapboxBridge/Private/EditorLandscapeLibrary.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include "Developer/DesktopPlatform/Public/DesktopPlatformModule.h"
44
#include "Landscape.h"
55
#include "LandscapeProxy.h"
6+
#include "LandscapeStreamingProxy.h"
67
#include "LandscapeInfo.h"
78
#include "LandscapeEdit.h"
89
#include "LandscapeEditorUtils.h"
@@ -26,6 +27,7 @@
2627
#include <fstream>
2728
#include "UObject/ConstructorHelpers.h"
2829
#include "Components/SplineComponent.h"
30+
#include "WorldPartition/WorldPartition.h"
2931

3032

3133
using json = nlohmann::json;
@@ -128,10 +130,13 @@ void UEditorLandscapeLibrary::ImportHeightmap(FString FilePath, FString Landscap
128130
int ComponentSizeQuads = 63;
129131
int SubsectionSizeQuads = 63;
130132
int NumSubsections = 2;
133+
//int WorldPartitionGridSize = 2;
131134

132135
Landscape->ComponentSizeQuads = ComponentSizeQuads;
133136
Landscape->SubsectionSizeQuads = SubsectionSizeQuads;
134137
Landscape->NumSubsections = NumSubsections;
138+
// Landscape->GridSize = WorldPartitionGridSize;
139+
135140
Landscape->SetLandscapeGuid(FGuid::NewGuid());
136141

137142
const auto ActualPath = FilePath.IsEmpty() ? Landscape->ReimportHeightmapFilePath : FilePath;

0 commit comments

Comments
 (0)