Fix moving reroute node in Visject to not break it's connection
This commit is contained in:
@@ -659,7 +659,7 @@ namespace FlaxEditor.Surface
|
|||||||
if (_movingNodes != null && _movingNodes.Count > 0)
|
if (_movingNodes != null && _movingNodes.Count > 0)
|
||||||
{
|
{
|
||||||
// Allow dropping a single node onto an existing connection and connect it
|
// Allow dropping a single node onto an existing connection and connect it
|
||||||
if (_movingNodes.Count == 1)
|
if (_movingNodes.Count == 1 && controlUnderMouse is not Archetypes.Tools.RerouteNode)
|
||||||
{
|
{
|
||||||
var mousePos = _rootControl.PointFromParent(ref _mousePos);
|
var mousePos = _rootControl.PointFromParent(ref _mousePos);
|
||||||
InputBox intersectedConnectionInputBox;
|
InputBox intersectedConnectionInputBox;
|
||||||
|
|||||||
Reference in New Issue
Block a user