]> git.tdb.fi Git - r2c2.git/commitdiff
Lift selection wraps slightly off the ground
authorMikko Rasa <tdb@tdb.fi>
Wed, 2 Apr 2014 20:14:51 +0000 (23:14 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 2 Apr 2014 20:14:51 +0000 (23:14 +0300)
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);
        }