[GraphEditor] Edge: Correctly update the EdgeMouseArea when moving nodes

This commit is contained in:
Candice Bentéjac 2024-12-03 11:56:56 +01:00
parent 409c7ec813
commit 0dca19f158

View file

@ -148,8 +148,8 @@ Item {
Component.onCompleted: {
/* The curve scale must be set only once the component has been fully created, so
* that all the events following the update of the curve scale can be taken into
* account */
curveScale = cubic.ctrlPtDist / root.width // Normalize by width
* account. */
curveScale = Qt.binding(() => cubic.ctrlPtDist / root.width) // Normalize by width
}
}
}