summaryrefslogtreecommitdiff
path: root/ui/builders
diff options
context:
space:
mode:
Diffstat (limited to 'ui/builders')
-rw-r--r--ui/builders/freeExtend.cpp8
-rw-r--r--ui/builders/join.cpp4
-rw-r--r--ui/builders/straight.cpp4
3 files changed, 12 insertions, 4 deletions
diff --git a/ui/builders/freeExtend.cpp b/ui/builders/freeExtend.cpp
index 904e144..fa08af6 100644
--- a/ui/builders/freeExtend.cpp
+++ b/ui/builders/freeExtend.cpp
@@ -61,11 +61,15 @@ BuilderFreeExtend::click(
Link::CCollection
BuilderFreeExtend::createJoin(Network * network, GlobalPosition3D p1, GlobalPosition3D p2) const
{
- return network->addJoins(p1, p2);
+ const auto links = network->addJoins(p1, p2);
+ setHeightsFor(network, links);
+ return links;
}
Link::CCollection
BuilderFreeExtend::createExtend(Network * network, GlobalPosition3D p1, GlobalPosition3D p2) const
{
- return network->addExtend(p1, p2);
+ const auto links = network->addExtend(p1, p2);
+ setHeightsFor(network, links);
+ return links;
}
diff --git a/ui/builders/join.cpp b/ui/builders/join.cpp
index 9fbbae9..ee14d63 100644
--- a/ui/builders/join.cpp
+++ b/ui/builders/join.cpp
@@ -49,5 +49,7 @@ BuilderJoin::click(
Link::CCollection
BuilderJoin::create(Network * network, const Node::Ptr & p1, const Node::Ptr & p2) const
{
- return network->addJoins(p1->pos, p2->pos);
+ const auto links = network->addJoins(p1->pos, p2->pos);
+ setHeightsFor(network, links);
+ return links;
}
diff --git a/ui/builders/straight.cpp b/ui/builders/straight.cpp
index 014eea5..b9f1831 100644
--- a/ui/builders/straight.cpp
+++ b/ui/builders/straight.cpp
@@ -52,5 +52,7 @@ BuilderStraight::click(
Link::CCollection
BuilderStraight::create(Network * network, GlobalPosition3D p1, GlobalPosition3D p2) const
{
- return network->addStraight(p1, p2);
+ const auto links = network->addStraight(p1, p2);
+ setHeightsFor(network, links);
+ return links;
}