Files
UnrealEngineUWP/Engine/Source/Editor/AssetPlacementEdMode/Private/Tools/PlacementSelectTool.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

30 lines
805 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "Tools/PlacementSelectTool.h"
#include "UObject/Object.h"
#include "ToolContextInterfaces.h"
#include "InteractiveToolManager.h"
constexpr TCHAR UPlacementModeSelectTool::ToolName[];
bool UPlacementModeSelectToolBuilder::CanBuildTool(const FToolBuilderState& SceneState) const
{
return true;
}
UPlacementBrushToolBase* UPlacementModeSelectToolBuilder::FactoryToolInstance(UObject* Outer) const
{
return NewObject<UPlacementModeSelectTool>(Outer);
}
void UPlacementModeSelectTool::Setup()
{
Super::Setup();
ShutdownBrushStampIndicator();
}
FInputRayHit UPlacementModeSelectTool::CanBeginClickDragSequence(const FInputDeviceRay& PressPos)
{
return FInputRayHit(); // always fall-through to the EdMode or viewport handling for clicks.
}