fixed reconnect with connectionMode=loose

This commit is contained in:
peterkogo
2024-08-26 14:31:39 +02:00
parent 9b768b2dae
commit 30e83b7dd1
4 changed files with 23 additions and 26 deletions
+2 -2
View File
@@ -61,7 +61,7 @@ function onPointerDown(
return;
}
const fromHandleInternal = getHandle(nodeId, handleType, handleId, nodeLookup);
const fromHandleInternal = getHandle(nodeId, handleType, handleId, nodeLookup, connectionMode);
if (!fromHandleInternal) {
return;
}
@@ -289,7 +289,7 @@ function isValidHandle(
result.isValid = isValid && isValidConnection(connection);
result.toHandle = getHandle(handleNodeId, handleType, handleId, nodeLookup, false);
result.toHandle = getHandle(handleNodeId, handleType, handleId, nodeLookup, connectionMode, false);
}
return result;