Trim down the amount of UObject constructors.

#codereview Robert.Manuszewski

[CL 2429641 by Mikolaj Sieluzycki in Main branch]
This commit is contained in:
Mikolaj Sieluzycki
2015-02-03 05:40:57 -05:00
parent 0fc63432ef
commit fa01cacb6c
291 changed files with 773 additions and 761 deletions

View File

@@ -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();