From 37f04b681fc439e7a1a96d01406d2dee79ce1340 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Cerveau?= Date: Mon, 9 Sep 2024 14:30:29 +0200 Subject: [PATCH] graphview: set the node position This position will be used by the the graph saver --- src/graphmanager/graphview.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/graphmanager/graphview.rs b/src/graphmanager/graphview.rs index 23c61d2..25355b5 100644 --- a/src/graphmanager/graphview.rs +++ b/src/graphmanager/graphview.rs @@ -1400,6 +1400,7 @@ impl GraphView { let node = nodes .get_mut(&widget.id()) .expect("Node is not on the graph"); + node.0.set_position(point.x(), point.y()); node.1 = graphene::Point::new( point.x().clamp( -(CANVAS_SIZE / 2.0) as f32,