X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdesigner%2Fselectionwrap.cpp;h=53750758c7b14b54cf072c64bd237e631ab26b45;hb=528c4f8760ac54fb2d1f3002248ecf6774956030;hp=79268743b20de383d176fd46c63ac5549a03b38b;hpb=7fe7e3ec8f296d2f7fefeaf76f384362fcc27e64;p=r2c2.git 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); }