summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-04-26 16:34:19 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2024-04-26 16:34:19 +0100
commit0d0a9b2f56bedc0b9394b2ad9a1199ef2907f8f2 (patch)
treeff33d20acf1e6a672b217b928d6b0176147207a9 /test
parentDon't return newly created faces from split (diff)
downloadilt-0d0a9b2f56bedc0b9394b2ad9a1199ef2907f8f2.tar.bz2
ilt-0d0a9b2f56bedc0b9394b2ad9a1199ef2907f8f2.tar.xz
ilt-0d0a9b2f56bedc0b9394b2ad9a1199ef2907f8f2.zip
Set the face surface type when setting height
Diffstat (limited to 'test')
-rw-r--r--test/test-geoData.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test-geoData.cpp b/test/test-geoData.cpp
index fb9aba0..11d634d 100644
--- a/test/test-geoData.cpp
+++ b/test/test-geoData.cpp
@@ -229,8 +229,10 @@ BOOST_TEST_DECORATOR(*boost::unit_test::timeout(2));
BOOST_DATA_TEST_CASE(deform, loadFixtureJson<DeformTerrainData>("geoData/deform/1.json"), points, cams)
{
+ Surface surface;
+ surface.colorBias = RGB {0, 0, 1};
auto gd = std::make_shared<GeoData>(GeoData::createFlat({0, 0}, {1000000, 1000000}, 100));
- BOOST_CHECK_NO_THROW(gd->setHeights(points));
+ BOOST_CHECK_NO_THROW(gd->setHeights(points, surface));
ApplicationBase ab;
TestMainWindow tmw;