fix: edge 1 frame lag

This commit is contained in:
parker
2025-06-23 19:30:53 +01:00
parent 67e9669708
commit fa2c106768
5 changed files with 69 additions and 21 deletions

View File

@@ -53,11 +53,11 @@ void SocketGraphic::posChanged(QPointF pos)
// edge->setPos(startSocket_->scenePos(), socket->scenePos());
if(type_==SocketType::Input)
{
edge->setStartPos(this->scenePos());
edge->setStartPos(pos);
}
else if(type_==SocketType::Output)
{
edge->setEndPos(this->scenePos());
edge->setEndPos(pos);
}
}
}