File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
meshroom/ui/qml/GraphEditor Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -148,8 +148,21 @@ Item {
148148 Component .onCompleted : {
149149 /* The curve scale must be set only once the component has been fully created, so
150150 * that all the events following the update of the curve scale can be taken into
151- * account */
151+ * account. */
152152 curveScale = cubic .ctrlPtDist / root .width // Normalize by width
153153 }
154+
155+ Connections {
156+ target: root
157+
158+ /* When the shape of the edge changes, the curve scale must be updated accordingly
159+ * for the edge to remain selectable. */
160+ function onWidthChanged () {
161+ edgeArea .curveScale = cubic .ctrlPtDist / root .width
162+ }
163+ function onHeightChanged () {
164+ edgeArea .curveScale = cubic .ctrlPtDist / root .width
165+ }
166+ }
154167 }
155168}
You can’t perform that action at this time.
0 commit comments