summaryrefslogtreecommitdiff
path: root/test/test-render.cpp
diff options
context:
space:
mode:
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