mirror of
https://gitlab.freedesktop.org/dabrain34/GstPipelineStudio.git
synced 2025-01-08 16:05:33 +00:00
graphview: set the node position
This position will be used by the the graph saver
This commit is contained in:
parent
c309e94db2
commit
37f04b681f
1 changed files with 1 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue