From: Mikko Rasa Date: Wed, 2 Apr 2014 20:14:51 +0000 (+0300) Subject: Lift selection wraps slightly off the ground X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=ab0cffffb161d8d76e77e7444eb6141312059bfb;p=r2c2.git Lift selection wraps slightly off the ground --- diff --git a/source/designer/selectionwrap.cpp b/source/designer/selectionwrap.cpp index 7926874..5375075 100644 --- a/source/designer/selectionwrap.cpp +++ b/source/designer/selectionwrap.cpp @@ -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); }