Skip to content

Commit b6c86b6

Browse files
committed
Add support Unreal Engine 4.25.
1 parent 85f6cfe commit b6c86b6

39 files changed

+3208
-1762
lines changed

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,9 @@ Saved/*
5656
Build/*
5757

5858
# Cache files for the editor to use
59-
DerivedDataCache/*
59+
DerivedDataCache/*
60+
61+
#Plugin directory
62+
Plugins/LevelGenPlugin/Intermediate/*
63+
Plugins/LevelGenPlugin/Binaries/*
64+
!Plugins/LevelGenPlugin/Binaries/Win64/*.dll

Binaries/Win64/LevelGenEditor.target

Lines changed: 3064 additions & 1635 deletions
Large diffs are not rendered by default.

Binaries/Win64/UE4Editor-LevelGen.dll

-9.5 KB
Binary file not shown.

Binaries/Win64/UE4Editor.modules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"BuildId": "4212847",
2+
"BuildId": "13144385",
33
"Modules":
44
{
55
"LevelGen": "UE4Editor-LevelGen.dll"

Config/DefaultEditor.ini

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.
Binary file not shown.
Binary file not shown.

LevelGen.uproject

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"FileVersion": 3,
3-
"EngineAssociation": "4.20",
3+
"EngineAssociation": "4.25",
44
"Category": "",
55
"Description": "",
66
"Modules": [
Binary file not shown.
Binary file not shown.

Plugins/LevelGenPlugin/Binaries/Win64/UE4Editor.modules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"BuildId": "4212847",
2+
"BuildId": "13144385",
33
"Modules":
44
{
55
"LevelGenPluginEditor": "UE4Editor-LevelGenPluginEditor.dll",

Plugins/LevelGenPlugin/Source/LevelGenPluginEditor/ActorContainerDetailPanelCostamization.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include "NotificationManager.h"
88
#include "SButton.h"
99
#include "STextBlock.h"
10+
#include "AssetEditorManager.h"
1011
#include "Rooms/RoomStorage.h"
1112
#include "ActorStorage_AssetEditor.h"
1213
#include "ActorContainer.h"

Plugins/LevelGenPlugin/Source/LevelGenPluginRuntime/DataFillers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ void FDataFillerBildingDisposer::FillData(FVector2D Start, FVector2D End)
588588
std::shuffle(Bildings.begin(), Bildings.end(), LevelGenerator.GetRandomGenerator().GetGenerator());
589589
for (auto CurrentBilding : Bildings)
590590
{
591-
bool On90Deg = LevelGenerator.GetRandomGenerator().GetRandomNumber(0, 1);
591+
bool On90Deg = (bool)LevelGenerator.GetRandomGenerator().GetRandomNumber(0, 1);
592592

593593

594594
if (CurrentBilding->IsPlaceFit(FVector2D(i, j), On90Deg ? EYawTurn::HalfPi : EYawTurn::Zero, DataStorage))

Plugins/LevelGenPlugin/Source/LevelGenPluginRuntime/HoverCars/CarTrackGraph.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ FCarTrackGraphBase* FCarTrackLink::GetNextTrack(int LayerNum) const
118118

119119
FCarTrackNode::FCarTrackNode(EHoverCarTrackDirection _Direction, std::pair<FVector, FVector> FirstPoint, std::pair<FVector, FVector> SecondPoint, const FLevelGenRoadBase* _TrackRoadOwner,
120120
const FLevelGeneratorSettings& LevelSettings, const FDataStorage& DataStorage)
121-
: Direction(_Direction), FCarTrackGraphBase(LevelSettings, DataStorage), TrackRoadOwner(_TrackRoadOwner)
121+
: FCarTrackGraphBase(LevelSettings, DataStorage), Direction(_Direction), TrackRoadOwner(_TrackRoadOwner)
122122
{
123123

124124
switch (Direction)

Plugins/LevelGenPlugin/Source/LevelGenPluginRuntime/HoverCars/CarTrackGraph.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class FCarTrackGraphBase
3838
public:
3939

4040
FCarTrackGraphBase(const FLevelGeneratorSettings& _LevelSettings, const FDataStorage& _DataStorage) :
41-
LevelSettings(_LevelSettings), RandomGenerator(time(0)), DataStorage(_DataStorage) {}
41+
LevelSettings(_LevelSettings), DataStorage(_DataStorage), RandomGenerator(time(0)) {}
4242

4343
virtual ~FCarTrackGraphBase() {}
4444

Plugins/LevelGenPlugin/Source/LevelGenPluginRuntime/LevelCell.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ FLevelCellBase* ELevelCellTypeCreate(ELevelCellType Type, FLevelCellData& CellDa
5151
//FLevelCellData
5252
//*******************************************************
5353

54-
FLevelCellData::FLevelCellData(const FLevelGeneratorSettings& Settings, FVector2D _CellCoordinate, const FDataStorage& DataStorage) : LevelSettings(Settings), CellCoordinate(_CellCoordinate)
54+
FLevelCellData::FLevelCellData(const FLevelGeneratorSettings& Settings, FVector2D _CellCoordinate, const FDataStorage& DataStorage) : CellCoordinate(_CellCoordinate), LevelSettings(Settings)
5555
{
5656
Floors.resize(Settings.FloorNum, FLevelFloorData(DataStorage));
5757

Plugins/LevelGenPlugin/Source/LevelGenPluginRuntime/LevelGenBildingZone.cpp

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -77,17 +77,17 @@ void FLevelGenBildingZoneBase::CreateGraphLayers()
7777
}
7878
}
7979

80-
void FLevelGenBildingZoneBase::CreateTowers(const FLevelGeneratorSettings& LevelSettings, const ALevelGenerator& LevelGenerator, FDataStorage& DataStorage)
80+
void FLevelGenBildingZoneBase::CreateTowers(const FLevelGeneratorSettings& LevelSettings_loc, const ALevelGenerator& LevelGenerator_loc, FDataStorage& DataStorage_loc)
8181
{
82-
FVector2D NumTowers(RoundNumber(Size.X / LevelSettings.TowerFrequency, ERoundType::Up), RoundNumber(Size.Y / LevelSettings.TowerFrequency, ERoundType::Up));
82+
FVector2D NumTowers(RoundNumber(Size.X / LevelSettings_loc.TowerFrequency, ERoundType::Up), RoundNumber(Size.Y / LevelSettings_loc.TowerFrequency, ERoundType::Up));
8383

8484
std::vector<const FLevelTower*> TowersFromStorage;
85-
LevelGenerator.GetTowerStorage()->GetTowers(TowersFromStorage);
85+
LevelGenerator_loc.GetTowerStorage()->GetTowers(TowersFromStorage);
8686

8787

88-
std::shuffle(TowersFromStorage.begin(), TowersFromStorage.end(), LevelGenerator.GetRandomGenerator().GetGenerator());
88+
std::shuffle(TowersFromStorage.begin(), TowersFromStorage.end(), LevelGenerator_loc.GetRandomGenerator().GetGenerator());
8989

90-
UObjectsDisposer TowerDisposer(std::make_pair(Coordinate, Coordinate + Size), LevelGenerator.GetRandomGenerator().GetGenerator(), LevelSettings);
90+
UObjectsDisposer TowerDisposer(std::make_pair(Coordinate, Coordinate + Size), LevelGenerator_loc.GetRandomGenerator().GetGenerator(), LevelSettings_loc);
9191

9292
if (NumTowers.X < 0 || NumTowers.Y < 0) throw;
9393

@@ -104,20 +104,20 @@ void FLevelGenBildingZoneBase::CreateTowers(const FLevelGeneratorSettings& Level
104104
{
105105
auto Predicate = [&](FVector Coordinate)
106106
{
107-
return TowersFromStorage[k]->IsPlaceFit(FVector2D(Coordinate), EYawTurn::Zero, DataStorage);
107+
return TowersFromStorage[k]->IsPlaceFit(FVector2D(Coordinate), EYawTurn::Zero, DataStorage_loc);
108108
};
109109

110110
FVector2D ToverCoordinate(0,0);
111111

112-
int CellOffsetX = LevelGenerator.GetRandomGenerator().GetRandomNumber(-LevelSettings.TowerFrequency / 2, LevelSettings.TowerFrequency / 2);
113-
int CellOffsetY = LevelGenerator.GetRandomGenerator().GetRandomNumber(-LevelSettings.TowerFrequency / 2, LevelSettings.TowerFrequency / 2);
112+
int CellOffsetX = LevelGenerator_loc.GetRandomGenerator().GetRandomNumber(-LevelSettings_loc.TowerFrequency / 2, LevelSettings_loc.TowerFrequency / 2);
113+
int CellOffsetY = LevelGenerator_loc.GetRandomGenerator().GetRandomNumber(-LevelSettings_loc.TowerFrequency / 2, LevelSettings_loc.TowerFrequency / 2);
114114

115115

116-
FVector2D SearchStartCoordinate = Coordinate + FVector2D(i * LevelSettings.TowerFrequency + CellOffsetX, j * LevelSettings.TowerFrequency + CellOffsetY);
116+
FVector2D SearchStartCoordinate = Coordinate + FVector2D(i * LevelSettings_loc.TowerFrequency + CellOffsetX, j * LevelSettings_loc.TowerFrequency + CellOffsetY);
117117

118118
if (TowerDisposer.GetLocation(ToverCoordinate, SearchStartCoordinate, 0, TowersFromStorage[k]->Size, Predicate))
119119
{
120-
BildingTowers[i][j] = std::shared_ptr<FPlacedLevelTower>(new FPlacedLevelTower(TowersFromStorage[k], ToverCoordinate, EYawTurn::Zero, DataStorage, LevelSettings));
120+
BildingTowers[i][j] = std::shared_ptr<FPlacedLevelTower>(new FPlacedLevelTower(TowersFromStorage[k], ToverCoordinate, EYawTurn::Zero, DataStorage_loc, LevelSettings_loc));
121121
break;
122122
}
123123
}
@@ -1730,12 +1730,12 @@ void FLevelGenBildingZoneBase::EdgeCut()
17301730

17311731

17321732

1733-
bool FLevelGenBildingZoneBase::CheckCell(FVector2D Coordinate)
1733+
bool FLevelGenBildingZoneBase::CheckCell(FVector2D Coordinate_loc)
17341734
{
17351735

1736-
if (DataStorage.LevelMap.IsCellExist(Coordinate) && DataStorage.LevelMap.GetCell(Coordinate)->CellInst && DataStorage.LevelMap.GetCell(Coordinate)->CellInst->CanEdgeCut())
1736+
if (DataStorage.LevelMap.IsCellExist(Coordinate_loc) && DataStorage.LevelMap.GetCell(Coordinate_loc)->CellInst && DataStorage.LevelMap.GetCell(Coordinate_loc)->CellInst->CanEdgeCut())
17371737
{
1738-
for (auto CellFloorIT = DataStorage.LevelMap.GetCell(Coordinate)->Floors.begin(); CellFloorIT != DataStorage.LevelMap.GetCell(Coordinate)->Floors.end(); CellFloorIT++)
1738+
for (auto CellFloorIT = DataStorage.LevelMap.GetCell(Coordinate_loc)->Floors.begin(); CellFloorIT != DataStorage.LevelMap.GetCell(Coordinate_loc)->Floors.end(); CellFloorIT++)
17391739
{
17401740
if (CellFloorIT->PlasedRoom)
17411741
{
@@ -1750,12 +1750,12 @@ bool FLevelGenBildingZoneBase::CheckCell(FVector2D Coordinate)
17501750
return false;
17511751
}
17521752

1753-
bool FLevelGenBildingZoneBase::CheckCellFloors(FVector2D Coordinate)
1753+
bool FLevelGenBildingZoneBase::CheckCellFloors(FVector2D Coordinate_loc)
17541754
{
17551755

1756-
if (DataStorage.LevelMap.IsCellExist(Coordinate))
1756+
if (DataStorage.LevelMap.IsCellExist(Coordinate_loc))
17571757
{
1758-
for (auto CellFloorIT = DataStorage.LevelMap.GetCell(Coordinate)->Floors.begin(); CellFloorIT != DataStorage.LevelMap.GetCell(Coordinate)->Floors.end(); CellFloorIT++)
1758+
for (auto CellFloorIT = DataStorage.LevelMap.GetCell(Coordinate_loc)->Floors.begin(); CellFloorIT != DataStorage.LevelMap.GetCell(Coordinate_loc)->Floors.end(); CellFloorIT++)
17591759
{
17601760
if (CellFloorIT->PlasedRoom)
17611761
{
@@ -1770,11 +1770,11 @@ bool FLevelGenBildingZoneBase::CheckCellFloors(FVector2D Coordinate)
17701770
return false;
17711771
}
17721772

1773-
void FLevelGenBildingZoneBase::ReplaceCell(FVector2D Coordinate)
1773+
void FLevelGenBildingZoneBase::ReplaceCell(FVector2D Coordinate_loc)
17741774
{
1775-
std::shared_ptr<FLevelCellBase> LastCell = std::move(DataStorage.LevelMap.GetCell(Coordinate)->CellInst);
1775+
std::shared_ptr<FLevelCellBase> LastCell = std::move(DataStorage.LevelMap.GetCell(Coordinate_loc)->CellInst);
17761776
FLevelCellBilding* Bilding = static_cast<FLevelCellBilding*>(LastCell.get());
1777-
DataStorage.LevelMap.GetCell(Coordinate)->CellInst = std::shared_ptr<FLevelCellBase>(new FLevelCellThroughCell(*Bilding));
1777+
DataStorage.LevelMap.GetCell(Coordinate_loc)->CellInst = std::shared_ptr<FLevelCellBase>(new FLevelCellThroughCell(*Bilding));
17781778
}
17791779

17801780

@@ -1912,7 +1912,7 @@ void FLevelGenBildingZone::CreateProceduralFigure()
19121912
GetSenterCoordinate().Y * LevelSettings.CellSize, 0), &LevelSettings.RoadGroundMaterial);
19131913
}
19141914

1915-
void FLevelGenBildingZone::ConnectBildingToLevelCells(FDataStorage& DataStorage)
1915+
void FLevelGenBildingZone::ConnectBildingToLevelCells(FDataStorage& DataStorage_loc)
19161916
{
19171917
for (int i = 0; i < (int)EDirection::end; i++)
19181918
{
@@ -1922,30 +1922,30 @@ void FLevelGenBildingZone::ConnectBildingToLevelCells(FDataStorage& DataStorage)
19221922

19231923
for (auto CurrentCoordinate = WallCellsCoordinate.begin(); CurrentCoordinate != WallCellsCoordinate.end(); CurrentCoordinate++)
19241924
{
1925-
DataStorage.LevelMap.GetCell(*CurrentCoordinate)->LinkedBildingZone = this;
1925+
DataStorage_loc.LevelMap.GetCell(*CurrentCoordinate)->LinkedBildingZone = this;
19261926
}
19271927
}
19281928

19291929
for (int i = Coordinate.X; i < Coordinate.X + Size.X; i++)
19301930
{
19311931
for (int j = Coordinate.Y; j < Coordinate.Y + Size.Y; j++)
19321932
{
1933-
if (!DataStorage.LevelMap.GetCell(i, j)->CellInst)
1933+
if (!DataStorage_loc.LevelMap.GetCell(i, j)->CellInst)
19341934
{
1935-
DataStorage.LevelMap.GetCell(i, j)->CellInst = std::shared_ptr<FLevelCellBase>(ELevelCellTypeCreate(ELevelCellType::Bilding, *DataStorage.LevelMap.GetCell(i, j)));
1935+
DataStorage_loc.LevelMap.GetCell(i, j)->CellInst = std::shared_ptr<FLevelCellBase>(ELevelCellTypeCreate(ELevelCellType::Bilding, *DataStorage_loc.LevelMap.GetCell(i, j)));
19361936

19371937
}
19381938
else
19391939
{
1940-
if (DataStorage.LevelMap.GetCell(i, j)->CellInst->GetCellType() != ELevelCellType::Tower)
1940+
if (DataStorage_loc.LevelMap.GetCell(i, j)->CellInst->GetCellType() != ELevelCellType::Tower)
19411941
{
1942-
DataStorage.LevelMap.GetCell(i, j)->CellInst = std::shared_ptr<FLevelCellBase>(ELevelCellTypeCreate(ELevelCellType::Bilding, *DataStorage.LevelMap.GetCell(i, j)));
1942+
DataStorage_loc.LevelMap.GetCell(i, j)->CellInst = std::shared_ptr<FLevelCellBase>(ELevelCellTypeCreate(ELevelCellType::Bilding, *DataStorage_loc.LevelMap.GetCell(i, j)));
19431943
UE_LOG(LogTemp, Warning, TEXT("ConnectBildingToLevelCells bad cell type %s"),
1944-
*GetEnumValueAsString<ELevelCellType>("ELevelCellType", DataStorage.LevelMap.GetCell(i, j)->CellInst->GetCellType()));
1944+
*GetEnumValueAsString<ELevelCellType>("ELevelCellType", DataStorage_loc.LevelMap.GetCell(i, j)->CellInst->GetCellType()));
19451945

19461946
}
19471947
}
1948-
DataStorage.LevelMap.GetCell(i, j)->LinkedBildingZone = this;
1948+
DataStorage_loc.LevelMap.GetCell(i, j)->LinkedBildingZone = this;
19491949
}
19501950
}
19511951

@@ -2032,7 +2032,7 @@ void FLevelGenBildingZoneTower::CreateTowerFasedeWallSegment(FVector WallCoordin
20322032
GetSenterCoordinate().Y * LevelSettings.CellSize, 0), &LevelSettings.BildingWallMaterial);
20332033
}
20342034

2035-
void FLevelGenBildingZoneTower::ConnectBildingToLevelCells(FDataStorage& DataStorage)
2035+
void FLevelGenBildingZoneTower::ConnectBildingToLevelCells(FDataStorage& DataStorage_loc)
20362036
{
20372037
for (int i = 0; i < (int)EDirection::end; i++)
20382038
{
@@ -2042,16 +2042,16 @@ void FLevelGenBildingZoneTower::ConnectBildingToLevelCells(FDataStorage& DataSto
20422042

20432043
for (auto CurrentCoordinate = WallCellsCoordinate.begin(); CurrentCoordinate != WallCellsCoordinate.end(); CurrentCoordinate++)
20442044
{
2045-
DataStorage.LevelMap.GetCell(*CurrentCoordinate)->LinkedBildingZone = this;
2045+
DataStorage_loc.LevelMap.GetCell(*CurrentCoordinate)->LinkedBildingZone = this;
20462046
}
20472047
}
20482048

20492049
for (int i = Coordinate.X; i < Coordinate.X + Size.X; i++)
20502050
{
20512051
for (int j = Coordinate.Y; j < Coordinate.Y + Size.Y; j++)
20522052
{
2053-
DataStorage.LevelMap.GetCell(i, j)->CellInst = std::shared_ptr<FLevelCellBase>(ELevelCellTypeCreate(ELevelCellType::Tower, *DataStorage.LevelMap.GetCell(i, j)));
2054-
DataStorage.LevelMap.GetCell(i, j)->LinkedBildingZone = this;
2053+
DataStorage_loc.LevelMap.GetCell(i, j)->CellInst = std::shared_ptr<FLevelCellBase>(ELevelCellTypeCreate(ELevelCellType::Tower, *DataStorage_loc.LevelMap.GetCell(i, j)));
2054+
DataStorage_loc.LevelMap.GetCell(i, j)->LinkedBildingZone = this;
20552055
}
20562056
}
20572057

Plugins/LevelGenPlugin/Source/LevelGenPluginRuntime/LevelGenCore.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ class UObjectsDisposer
214214
public:
215215

216216
UObjectsDisposer(std::pair<FVector2D, FVector2D> _SearchAreaRange, std::mt19937& _RandomGenerator, const FLevelGeneratorSettings& _LevelSettings) :
217-
SearchAreaRange(_SearchAreaRange), RandomGenerator(_RandomGenerator), LevelSettings(_LevelSettings)
217+
LevelSettings(_LevelSettings), SearchAreaRange(_SearchAreaRange), RandomGenerator(_RandomGenerator)
218218
{
219219
if (SearchAreaRange.first.X > SearchAreaRange.second.X || SearchAreaRange.first.Y > SearchAreaRange.second.Y) throw FString("Bad search area");
220220
}

Plugins/LevelGenPlugin/Source/LevelGenPluginRuntime/LevelGenPluginRuntime.Build.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public LevelGenPluginRuntime(ReadOnlyTargetRules ROTargetRules) : base(ROTargetR
1212

1313
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "ProceduralMeshComponent" });
1414

15-
PrivateDependencyModuleNames.AddRange(new string[] { "RHI", "RenderCore", "ShaderCore" });
15+
PrivateDependencyModuleNames.AddRange(new string[] { "RHI", "RenderCore"});
1616

1717
// Uncomment if you are using Slate UI
1818
// PrivateDependencyModuleNames.AddRange(new string[] { "Slate", "SlateCore" });

Plugins/LevelGenPlugin/Source/LevelGenPluginRuntime/LevelGenProceduralMeshComponent.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ void FLevelGenProceduralMeshSceneProxy::GetDynamicMeshElements(const TArray<cons
116116
if (bWireframe)
117117
{
118118
WireframeMaterialInstance = new FColoredMaterialRenderProxy(
119-
GEngine->WireframeMaterial ? GEngine->WireframeMaterial->GetRenderProxy(IsSelected()) : NULL,
119+
GEngine->WireframeMaterial ? GEngine->WireframeMaterial->GetRenderProxy() : NULL,
120120
FLinearColor(0, 0.5f, 1.f)
121121
);
122122

@@ -128,7 +128,7 @@ void FLevelGenProceduralMeshSceneProxy::GetDynamicMeshElements(const TArray<cons
128128
{
129129
if (Sections[i] && Sections[i]->bSectionVisible)
130130
{
131-
FMaterialRenderProxy* MaterialProxy = bWireframe ? WireframeMaterialInstance : Sections[i]->Material->GetRenderProxy(IsSelected());
131+
FMaterialRenderProxy* MaterialProxy = bWireframe ? WireframeMaterialInstance : Sections[i]->Material->GetRenderProxy();
132132

133133
// For each view..
134134
for (int32 ViewIndex = 0; ViewIndex < Views.Num(); ViewIndex++)
@@ -143,7 +143,7 @@ void FLevelGenProceduralMeshSceneProxy::GetDynamicMeshElements(const TArray<cons
143143
Mesh.bWireframe = bWireframe;
144144
Mesh.VertexFactory = &Sections[i]->VertexFactory;
145145
Mesh.MaterialRenderProxy = MaterialProxy;
146-
BatchElement.PrimitiveUniformBuffer = CreatePrimitiveUniformBufferImmediate(GetLocalToWorld(), GetBounds(), GetLocalBounds(), true, UseEditorDepthTest());
146+
BatchElement.PrimitiveUniformBuffer = nullptr;
147147
BatchElement.FirstIndex = 0;
148148
BatchElement.NumPrimitives = Sections[i]->IndexBuffer.Indices.Num() / 3;
149149
BatchElement.MinVertexIndex = 0;
@@ -168,7 +168,7 @@ void FLevelGenProceduralMeshSceneProxy::GetDynamicMeshElements(const TArray<cons
168168
if (ViewFamily.EngineShowFlags.Collision && IsCollisionEnabled() && BodySetup->GetCollisionTraceFlag() != ECollisionTraceFlag::CTF_UseComplexAsSimple)
169169
{
170170
FTransform GeomTransform(GetLocalToWorld());
171-
BodySetup->AggGeom.GetAggGeom(GeomTransform, GetSelectionColor(FColor(157, 149, 223, 255), IsSelected(), IsHovered()).ToFColor(true), NULL, false, false, UseEditorDepthTest(), ViewIndex, Collector);
171+
BodySetup->AggGeom.GetAggGeom(GeomTransform, GetSelectionColor(FColor(157, 149, 223, 255), IsSelected(), IsHovered()).ToFColor(true), NULL, false, false, DrawsVelocity(), ViewIndex, Collector);
172172
}
173173

174174
// Render bounds

0 commit comments

Comments
 (0)