diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-12-22 13:53:27 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-12-22 13:53:27 +0000 |
commit | 749df22c85b83c86ec68ebc74829287e54498e26 (patch) | |
tree | 8e3635f80673c0b8d4505de3d363aa7742a2d430 /ui/builders/join.cpp | |
parent | Expose network base width and surface (diff) | |
download | ilt-749df22c85b83c86ec68ebc74829287e54498e26.tar.bz2 ilt-749df22c85b83c86ec68ebc74829287e54498e26.tar.xz ilt-749df22c85b83c86ec68ebc74829287e54498e26.zip |
Set terrain heights when creating new network linksterrain-for-networks
Diffstat (limited to 'ui/builders/join.cpp')
-rw-r--r-- | ui/builders/join.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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; } |