You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Removed the invalid right-click context menu from the Reference Viewer when clicking on the background.
#jira UE-13407 - Right clicking in Reference Viewer brings up context menu with non-functional search [CL 2506581 by Richard TalbotWatkin in Main branch]
This commit is contained in:
committed by
epic@richtech.es
parent
dcbedf3fa6
commit
d2d9771cb4
@@ -40,6 +40,7 @@ void SReferenceViewer::Construct( const FArguments& InArgs )
|
||||
|
||||
SGraphEditor::FGraphEditorEvents GraphEvents;
|
||||
GraphEvents.OnNodeDoubleClicked = FSingleNodeEvent::CreateSP(this, &SReferenceViewer::OnNodeDoubleClicked);
|
||||
GraphEvents.OnCreateActionMenu = SGraphEditor::FOnCreateActionMenu::CreateSP(this, &SReferenceViewer::OnCreateGraphActionMenu);
|
||||
|
||||
// Create the graph editor
|
||||
GraphEditorPtr = SNew(SGraphEditor)
|
||||
@@ -260,6 +261,12 @@ void SReferenceViewer::OnNodeDoubleClicked(UEdGraphNode* Node)
|
||||
ReCenterGraphOnNodes( Nodes );
|
||||
}
|
||||
|
||||
FActionMenuContent SReferenceViewer::OnCreateGraphActionMenu(UEdGraph* InGraph, const FVector2D& InNodePosition, const TArray<UEdGraphPin*>& InDraggedPins, bool bAutoExpand, SGraphEditor::FActionMenuClosed InOnMenuClosed)
|
||||
{
|
||||
// no context menu when not over a node
|
||||
return FActionMenuContent();
|
||||
}
|
||||
|
||||
bool SReferenceViewer::IsBackEnabled() const
|
||||
{
|
||||
return HistoryManager.CanGoBack();
|
||||
|
||||
Reference in New Issue
Block a user