X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2F3d%2Fpath.cpp;h=816631b8307a8f289f436e41c0f7e71d17b1f577;hb=cb4dfc37dd2cd9e02de7f022fd7f8a1fc8e5ee3c;hp=fe4a2467b57df59c64e9d3aea9f4396af922eccb;hpb=51779f52d3f1fe23e2bdb8864c88b5edd49c57ed;p=r2c2.git diff --git a/source/3d/path.cpp b/source/3d/path.cpp index fe4a246..816631b 100644 --- a/source/3d/path.cpp +++ b/source/3d/path.cpp @@ -71,9 +71,8 @@ void Path3D::render(GL::Renderer &renderer, const GL::Tag &tag) const return; GL::MatrixStack::Push push_mtx(renderer.matrix_stack()); - GL::Matrix matrix = track.create_matrix(); - matrix.translate(0, 0, z_offs); - renderer.matrix_stack() *= matrix; + renderer.matrix_stack() *= track.Object3D::get_matrix(); + renderer.matrix_stack() *= GL::Matrix::translation(0, 0, z_offs); glColor4f(color.r, color.g, color.b, color.a); for(unsigned i=0; mask; ++i, mask>>=1)