]> git.tdb.fi Git - r2c2.git/blobdiff - source/designer/selectionwrap.cpp
Lift selection wraps slightly off the ground
[r2c2.git] / source / designer / selectionwrap.cpp
index 79268743b20de383d176fd46c63ac5549a03b38b..53750758c7b14b54cf072c64bd237e631ab26b45 100644 (file)
@@ -28,7 +28,7 @@ void SelectionWrap::render(GL::Renderer &renderer, const GL::Tag &) const
        {
                GL::MatrixStack::Push push(renderer.matrix_stack());
                const Vector &pos = i->object->get_position();
-               renderer.matrix_stack() *= GL::Matrix::translation(pos);
+               renderer.matrix_stack() *= GL::Matrix::translation(pos+GL::Vector3(0, 0, 0.001));
                renderer.matrix_stack() *= GL::Matrix::rotation(i->object->get_rotation(), 0, 0, 1);
                i->mesh->draw(renderer);
        }