Files
UnrealEngineUWP/Engine/Source/Editor/AssetPlacementEdMode/Private/Tools/PlacementClickDragToolBase.cpp
brooke hubert 17f0e31526 Placement Mode Single place tool improvements:
* Tweak after placement in world and local space using standard level editor gizmos.
* Removed Single place tool settings. Since we're using the TRS gizmos, these settings are unnecessary.
* Moved cycle through palette to shift + right click to match other viewport functions (i.e. cycling static mesh previews).
* Placement mode now inherits from default ed mode, so we will get the new gizmos as they come online.
* Fixed a bug in the select tool where the input was never making it back to the viewport for handling.
* Fixed a bug in the ITF Editor hooks where the mouse capture was incorrectly reporting and eating the input from the viewport.

#Jira UE-107395
[at]jamie.dale

#ROBOMERGE-SOURCE: CL 15464701 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v771-15082668)

[CL 15466468 by brooke hubert in ue5-main branch]
2021-02-18 20:47:20 -04:00

29 lines
704 B
C++

// 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()
{
Super::Setup();
RemoveToolPropertySource(BrushProperties);
}
double UPlacementClickDragToolBase::EstimateMaximumTargetDimension()
{
return Super::EstimateMaximumTargetDimension();
}
void UPlacementClickDragToolBase::SetupBrushStampIndicator()
{
Super::SetupBrushStampIndicator();
BrushStampIndicator->bDrawRadiusCircle = false;
BrushProperties->BrushSize = .5f;
BrushProperties->BrushFalloffAmount = 1.f;
}