Add dragging existing connection from input box
This commit is contained in:
@@ -565,7 +565,18 @@ namespace FlaxEditor.Surface.Elements
|
||||
{
|
||||
_isMouseDown = false;
|
||||
if (Surface.CanEdit)
|
||||
Surface.ConnectingStart(this);
|
||||
{
|
||||
if (!IsOutput && HasSingleConnection)
|
||||
{
|
||||
var inputBox = Connections[0];
|
||||
BreakConnection(inputBox);
|
||||
Surface.ConnectingStart(inputBox);
|
||||
}
|
||||
else
|
||||
{
|
||||
Surface.ConnectingStart(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
base.OnMouseLeave();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user