From ab0cffffb161d8d76e77e7444eb6141312059bfb Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 2 Apr 2014 23:14:51 +0300 Subject: [PATCH] Lift selection wraps slightly off the ground --- source/designer/selectionwrap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.43.0