summaryrefslogtreecommitdiff
path: root/ui/builders/freeExtend.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ui/builders/freeExtend.cpp')
-rw-r--r--ui/builders/freeExtend.cpp8
1 files changed, 6 insertions, 2 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;
}