You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Trim down the amount of UObject constructors.
#codereview Robert.Manuszewski [CL 2429641 by Mikolaj Sieluzycki in Main branch]
This commit is contained in:
@@ -665,7 +665,7 @@ public:
|
||||
FLandscapeToolPaintBase<ToolTarget, FLandscapeToolStrokeFlatten<ToolTarget>>::EnterTool();
|
||||
|
||||
ALandscapeProxy* LandscapeProxy = this->EdMode->CurrentToolTarget.LandscapeInfo->GetLandscapeProxy();
|
||||
MeshComponent = ConstructObject<UStaticMeshComponent>(UStaticMeshComponent::StaticClass(), LandscapeProxy, NAME_None, RF_Transient);
|
||||
MeshComponent = NewObject<UStaticMeshComponent>(LandscapeProxy, NAME_None, RF_Transient);
|
||||
MeshComponent->StaticMesh = PlaneMesh;
|
||||
MeshComponent->AttachTo(LandscapeProxy->GetRootComponent());
|
||||
MeshComponent->RegisterComponent();
|
||||
|
||||
Reference in New Issue
Block a user