From 7e9113b2ed902aae7dac230515d844d9e9027ae5 Mon Sep 17 00:00:00 2001 From: waaake Date: Mon, 27 Jan 2025 10:17:00 +0530 Subject: [PATCH] [ui] Edge: Updated curveScale to use standard property binding for EdgeMouseArea --- meshroom/ui/qml/GraphEditor/Edge.qml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/meshroom/ui/qml/GraphEditor/Edge.qml b/meshroom/ui/qml/GraphEditor/Edge.qml index 8bc3e8a9b2..c534c66a6a 100644 --- a/meshroom/ui/qml/GraphEditor/Edge.qml +++ b/meshroom/ui/qml/GraphEditor/Edge.qml @@ -145,11 +145,6 @@ Item { root.released(event) } - 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 - } + curveScale: cubic.ctrlPtDist / root.width // Normalize by width } }