don't deselect the wire after making one connection

This commit is contained in:
Kae 2024-03-29 02:48:38 +11:00
parent 1510ed28e5
commit 8fee64013e

View File

@ -259,7 +259,6 @@ WireConnector::SwingResult WirePane::swing(WorldGeometry const& geometry, Vec2F
} else if (m_sourceConnector.entityLocation == matchNode->entityLocation) { } else if (m_sourceConnector.entityLocation == matchNode->entityLocation) {
return Mismatch; return Mismatch;
} else { } else {
m_connecting = false;
if (matchDirection == WireDirection::Output) if (matchDirection == WireDirection::Output)
m_worldClient->connectWire(*matchNode, m_sourceConnector); m_worldClient->connectWire(*matchNode, m_sourceConnector);
else else