summaryrefslogtreecommitdiff
path: root/test/test-render.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-04-23 21:53:20 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2023-04-26 00:07:32 +0100
commit59cc4b8a7cb25a7ac003eb05794ee94e080ad302 (patch)
treed7b4b2ae68252ef0568b0b636dd04f197452f50f /test/test-render.cpp
parentPop and complete instanced shadow support (diff)
downloadilt-59cc4b8a7cb25a7ac003eb05794ee94e080ad302.tar.bz2
ilt-59cc4b8a7cb25a7ac003eb05794ee94e080ad302.tar.xz
ilt-59cc4b8a7cb25a7ac003eb05794ee94e080ad302.zip
Fudge RV bogey position the same as we do the body in test-render
Diffstat (limited to 'test/test-render.cpp')
-rw-r--r--test/test-render.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test-render.cpp b/test/test-render.cpp
index 0fbeb2b..d5e2d87 100644
--- a/test/test-render.cpp
+++ b/test/test-render.cpp
@@ -36,8 +36,12 @@ public:
{
train1 = std::make_shared<RailVehicle>(brush47rvc);
train1->location.setPosition({52, 50, 2});
+ train1->bogies.front().setPosition(train1->bogies.front().position() + train1->location.position());
+ train1->bogies.back().setPosition(train1->bogies.back().position() + train1->location.position());
train2 = std::make_shared<RailVehicle>(brush47rvc);
train2->location.setPosition({52, 30, 2});
+ train2->bogies.front().setPosition(train2->bogies.front().position() + train2->location.position());
+ train2->bogies.back().setPosition(train2->bogies.back().position() + train2->location.position());
}
void
content(const SceneShader & shader) const override