Commit bdc28c9e authored by Jan Möbius's avatar Jan Möbius

Root Joint will be orange

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@12894 383ad7c9-94d9-4d36-a494-682f7c89f535
parent c06a3ae4
......@@ -316,14 +316,22 @@ void SkeletonNodeT<Skeleton>::draw(GLState& _state, const DrawModes::DrawMode& _
for(it = skeleton_.begin(); it != skeleton_.end(); ++it)
{
//select joint color
// If the vertex is selected, it will be always red
// If it is not selected,
if ( (*it)->selected() )
glColor3f(1.0, 0.0, 0.0);
else{
glColor3fv( &jointColor[0] );
else {
// If it is the root joint, it will get some kind of orange color
// Otherwise the the Base color is used
if ( (*it)->isRoot() )
glColor3f(1.0, 0.66, 0.0);
else
glColor3fv( &jointColor[0] );
}
//and draw the point
glVertex( pose->globalTranslation( (*it)->id() ) );
}
......
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