fix: edge positioning to sockets

This commit is contained in:
parker
2025-06-22 16:30:46 +01:00
parent 1f1250c076
commit 2b9544cfae
4 changed files with 20 additions and 6 deletions

View File

@@ -40,7 +40,14 @@ void SocketGraphic::posChanged(QPointF pos)
for(auto* edge : edges_)
{
// edge->setPos(startSocket_->scenePos(), socket->scenePos());
edge->setStartPos(this->scenePos());
if(type_==SocketType::Input)
{
edge->setStartPos(this->scenePos());
}
else if(type_==SocketType::Output)
{
edge->setEndPos(this->scenePos());
}
}
}