From 0dca19f158565a83e490f87ae3b310f1afc3e342 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Candice=20Bent=C3=A9jac?= Date: Tue, 3 Dec 2024 11:56:56 +0100 Subject: [PATCH] [GraphEditor] Edge: Correctly update the `EdgeMouseArea` when moving nodes --- meshroom/ui/qml/GraphEditor/Edge.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meshroom/ui/qml/GraphEditor/Edge.qml b/meshroom/ui/qml/GraphEditor/Edge.qml index 9db42bf951..ba90a688a8 100644 --- a/meshroom/ui/qml/GraphEditor/Edge.qml +++ b/meshroom/ui/qml/GraphEditor/Edge.qml @@ -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 } } }