Files
UnrealEngineUWP/Engine/Plugins/Editor/MeshEditor/Source/PolygonModeling/ExtendEdge.h
Mike Fricker 41fb27cfab Mesh Editor: Minor refactor to improve extensibility of mesh commands
- Removed type-specific base classes for mesh editor commands
- We now have a different base class for 'instant' commands vs 'edit' commands instead
- Removed 'F1' shortcut for move mode.  Will be dealing with that soon.

#rb none

[CL 3428090 by Mike Fricker in Dev-Geometry branch]
2017-05-08 10:55:06 -04:00

36 lines
1.1 KiB
C++

// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "MeshEditorCommands.h"
#include "ExtendEdge.generated.h"
/** Extends an edge by making a copy of it and allowing you to move it around */
UCLASS()
class UExtendEdgeCommand : public UMeshEditorEditCommand
{
GENERATED_BODY()
protected:
UExtendEdgeCommand()
{
UndoText = NSLOCTEXT( "MeshEditor", "UndoExtendEdge", "Extend Edge" );
bNeedsHoverLocation = false;
bNeedsDraggingInitiated = true;
}
// Overrides
virtual EEditableMeshElementType GetElementType() const override
{
return EEditableMeshElementType::Edge;
}
virtual void RegisterUICommand( class FBindingContext* BindingContext ) override;
virtual void ApplyDuringDrag( IMeshEditorModeEditingContract& MeshEditorMode, class UViewportInteractor* ViewportInteractor ) override;
virtual void AddToVRRadialMenuActionsMenu( class IMeshEditorModeUIContract& MeshEditorMode, class FMenuBuilder& MenuBuilder, TSharedPtr<FUICommandList> CommandList, const FName TEMPHACK_StyleSetName, class UVREditorMode* VRMode ) override;
protected:
};