Commit c81dffe8 authored by Isaak Lim's avatar Isaak Lim

- cleaned up and added some documentation to TextNode

- adjusted the code in RulerPlugin and SkeletonObject accordingly

refs #269

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@14695 383ad7c9-94d9-4d36-a494-682f7c89f535
parent fbcfc977
......@@ -158,8 +158,7 @@ void RulerPlugin::slotMouseEvent(QMouseEvent* _event)
if (!object->getAdditionalNode(textNode_,name(),textNodeName_.c_str()))
{
textNode_ = new ACG::SceneGraph::TextNode((OpenFlipper::Options::fontsDirStr() + OpenFlipper::Options::dirSeparator() + "freefont" + OpenFlipper::Options::dirSeparator() + "FreeSans.ttf").toStdString(),
textTransformNode_,textNodeName_,ACG::SceneGraph::TextNode::OBJECT_ALIGNED);
textNode_ = new ACG::SceneGraph::TextNode(textTransformNode_,textNodeName_,ACG::SceneGraph::TextNode::OBJECT_ALIGNED);
object->addAdditionalNode(textNode_,name(),textNodeName_.c_str());
}
......
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