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

closed #382

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@13481 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 6878f0a9
......@@ -320,15 +320,24 @@ void SkeletonNodeT<SkeletonType>::draw(GLState& _state, const DrawModes::DrawMod
// If the vertex is selected, it will be always red
// If it is not selected,
if ( (*it)->selected() )
glColor4f(1.0, 0.0, 0.0 ,1.0);
{
_state.set_diffuse_color(ACG::Vec4f(1.0, 0.0, 0.0 ,1.0));
_state.set_ambient_color(ACG::Vec4f(1.0, 0.0, 0.0 ,1.0));
_state.set_specular_color(ACG::Vec4f(1.0, 0.0, 0.0 ,1.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() )
glColor4f(1.0, 0.66, 0.0 ,1.0);
{
_state.set_diffuse_color(ACG::Vec4f(1.0, 0.66, 0.0 ,1.0));
_state.set_ambient_color(ACG::Vec4f(1.0, 0.66, 0.0 ,1.0));
_state.set_specular_color(ACG::Vec4f(1.0, 0.66, 0.0 ,1.0));
}
else {
glColor4f( jointColor[0], jointColor[1] , jointColor[2], 1.0 );
_state.set_diffuse_color(ACG::Vec4f(jointColor[0], jointColor[1] , jointColor[2], 1.0));
_state.set_ambient_color(ACG::Vec4f(jointColor[0], jointColor[1] , jointColor[2], 1.0));
_state.set_specular_color(ACG::Vec4f(jointColor[0], jointColor[1] , jointColor[2], 1.0));
}
}
......
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