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

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 ...@@ -598,6 +598,7 @@ getRenderObjects(ACG::IRenderer* _renderer, ACG::GLState& _state , const ACG::S
_state.push_modelview_matrix(); _state.push_modelview_matrix();
_state.scale(size_); _state.scale(size_);
ro.modelview = _state.modelview();
_state.pop_modelview_matrix(); _state.pop_modelview_matrix();
if (textMode_ == SCREEN_ALIGNED) if (textMode_ == SCREEN_ALIGNED)
......
...@@ -81,6 +81,7 @@ void RulerPlugin::showDistance() ...@@ -81,6 +81,7 @@ void RulerPlugin::showDistance()
lineNode_->set_color(OpenMesh::Vec4f(1.0f,0.0f,0.0f,1.0f)); lineNode_->set_color(OpenMesh::Vec4f(1.0f,0.0f,0.0f,1.0f));
lineNode_->set_line_width(3); lineNode_->set_line_width(3);
lineNode_->add_line(Point1,Point2); lineNode_->add_line(Point1,Point2);
lineNode_->alwaysOnTop() = true;
//set params for the text //set params for the text
ACG::Vec3d distVec = Point1 - Point2; ACG::Vec3d distVec = Point1 - Point2;
......
Supports Markdown
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