Merge pull request #2613 from alicevision/fix/edgeSelection

[GraphEditor] Edge: Correctly update the `EdgeMouseArea` when moving nodes
This commit is contained in:
Yann Lanthony 2024-12-03 12:48:05 +01:00 committed by GitHub
commit df4ad22b6c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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