You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Shift+LeftClick to duplicate drag a pin connection
#jira na #rb lauren.barnes #preflight https://horde.devtools.epicgames.com/job/6229f3ab313be30406724f16 [CL 19335196 by sara schvartzman in ue5-main branch]
This commit is contained in:
@@ -363,7 +363,7 @@ FReply SGraphPin::OnPinMouseDown( const FGeometry& SenderGeometry, const FPointe
|
||||
}
|
||||
|
||||
TSharedPtr<SGraphNode> OwnerNodePinned = OwnerNodePtr.Pin();
|
||||
if (MouseEvent.IsControlDown() && (GraphPinObj->LinkedTo.Num() > 0))
|
||||
if ((MouseEvent.IsControlDown() || MouseEvent.IsShiftDown()) && (GraphPinObj->LinkedTo.Num() > 0))
|
||||
{
|
||||
// Get a reference to the owning panel widget
|
||||
check(OwnerNodePinned.IsValid());
|
||||
@@ -446,8 +446,11 @@ FReply SGraphPin::OnPinMouseDown( const FGeometry& SenderGeometry, const FPointe
|
||||
// Note: that for some nodes, this can cause reconstruction. In that case, pins we had previously linked to may now be destroyed.
|
||||
// So the break MUST come after the SpawnPinDragEvent(), since that acquires handles from PinArray (the pins need to be
|
||||
// around for us to construct valid handles from).
|
||||
const UEdGraphSchema* Schema = GraphPinObj->GetSchema();
|
||||
Schema->BreakPinLinks(*GraphPinObj, true);
|
||||
if (MouseEvent.IsControlDown())
|
||||
{
|
||||
const UEdGraphSchema* Schema = GraphPinObj->GetSchema();
|
||||
Schema->BreakPinLinks(*GraphPinObj, true);
|
||||
}
|
||||
|
||||
if (DragEvent.IsValid())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user