summaryrefslogtreecommitdiff
path: root/test/test-assetFactory.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-04-23 21:31:41 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2023-04-23 21:31:41 +0100
commit687afb09ada73fb4aee932242a3b7ee492e63cb0 (patch)
treee8c654edf5b0927238c89d8c861afe9bed995c8c /test/test-assetFactory.cpp
parentAdd BufferedLocation (diff)
downloadilt-687afb09ada73fb4aee932242a3b7ee492e63cb0.tar.bz2
ilt-687afb09ada73fb4aee932242a3b7ee492e63cb0.tar.xz
ilt-687afb09ada73fb4aee932242a3b7ee492e63cb0.zip
Handle rendering of RailVehicles through RailVehicleClass instancing
Trains no longer need rendering as their parts are all RVC assets and that just works now. This commit creates some irritating duplication in RVC wrt body/2 bogies all of which are stored separately, but function in exactly the same way. This breaks RV shadows as we have no instancing shadow shaders yet.
Diffstat (limited to 'test/test-assetFactory.cpp')
-rw-r--r--test/test-assetFactory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-assetFactory.cpp b/test/test-assetFactory.cpp
index 82a1825..c0edd66 100644
--- a/test/test-assetFactory.cpp
+++ b/test/test-assetFactory.cpp
@@ -93,7 +93,7 @@ BOOST_AUTO_TEST_CASE(brush47xml, *boost::unit_test::timeout(5))
BOOST_REQUIRE(brush47rvc->bogies.back());
auto railVehicle = std::make_shared<RailVehicle>(brush47rvc);
- objects.objects.push_back(railVehicle);
+ objects.objects.push_back(brush47rvc);
render();
}