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/freeExtend.cpp | |
parent | Expose network base width and surface (diff) | |
download | ilt-terrain-for-networks.tar.bz2 ilt-terrain-for-networks.tar.xz ilt-terrain-for-networks.zip |
Set terrain heights when creating new network linksterrain-for-networks
Diffstat (limited to 'ui/builders/freeExtend.cpp')
-rw-r--r-- | ui/builders/freeExtend.cpp | 8 |
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; } |