2020-10-08 18:56:55 -04:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
|
|
|
|
#include "Tools/PlacementClickDragToolBase.h"
|
|
|
|
|
#include "UObject/Object.h"
|
|
|
|
|
#include "ToolContextInterfaces.h"
|
|
|
|
|
#include "InteractiveToolManager.h"
|
|
|
|
|
#include "BaseGizmos/BrushStampIndicator.h"
|
|
|
|
|
|
|
|
|
|
void UPlacementClickDragToolBase::Setup()
|
|
|
|
|
{
|
2021-02-18 13:43:48 -04:00
|
|
|
Super::Setup();
|
2020-10-08 18:56:55 -04:00
|
|
|
|
|
|
|
|
RemoveToolPropertySource(BrushProperties);
|
|
|
|
|
}
|
2020-12-08 11:27:52 -04:00
|
|
|
|
|
|
|
|
double UPlacementClickDragToolBase::EstimateMaximumTargetDimension()
|
|
|
|
|
{
|
2021-02-18 13:43:48 -04:00
|
|
|
return Super::EstimateMaximumTargetDimension();
|
2021-02-18 20:47:20 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void UPlacementClickDragToolBase::SetupBrushStampIndicator()
|
|
|
|
|
{
|
|
|
|
|
Super::SetupBrushStampIndicator();
|
|
|
|
|
|
|
|
|
|
BrushStampIndicator->bDrawRadiusCircle = false;
|
|
|
|
|
BrushProperties->BrushSize = .5f;
|
|
|
|
|
BrushProperties->BrushFalloffAmount = 1.f;
|
|
|
|
|
}
|