Commit c3cca5dc authored by Matthias Möller's avatar Matthias Möller

fix: textnode wasn't screen aligned if option was selected

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@16843 383ad7c9-94d9-4d36-a494-682f7c89f535
parent cf85089f
......@@ -598,6 +598,7 @@ getRenderObjects(ACG::IRenderer* _renderer, ACG::GLState& _state , const ACG::S
_state.push_modelview_matrix();
_state.scale(size_);
ro.modelview = _state.modelview();
_state.pop_modelview_matrix();
if (textMode_ == SCREEN_ALIGNED)
......
......@@ -81,6 +81,7 @@ void RulerPlugin::showDistance()
lineNode_->set_color(OpenMesh::Vec4f(1.0f,0.0f,0.0f,1.0f));
lineNode_->set_line_width(3);
lineNode_->add_line(Point1,Point2);
lineNode_->alwaysOnTop() = true;
//set params for the text
ACG::Vec3d distVec = Point1 - Point2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment