summaryrefslogtreecommitdiff
path: root/indra/newview/llvoavatar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llvoavatar.cpp')
-rwxr-xr-xindra/newview/llvoavatar.cpp20
1 files changed, 18 insertions, 2 deletions
diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp
index 7d38cd116d..cf49cd2589 100755
--- a/indra/newview/llvoavatar.cpp
+++ b/indra/newview/llvoavatar.cpp
@@ -1382,6 +1382,7 @@ void LLVOAvatar::renderBones()
ostr << jointp->getName() << ", ";
jointp->updateWorldMatrix();
+ LLJoint::SupportCategory sc = jointp->getSupport();
gGL.pushMatrix();
gGL.multMatrix( &jointp->getXform()->getWorldMatrix().mMatrix[0][0] );
@@ -1398,7 +1399,15 @@ void LLVOAvatar::renderBones()
LLGLDepthTest normal_depth(GL_TRUE);
// Unoccluded bone portions
- gGL.diffuseColor3f( 1.f, 1.f, 1.f );
+ if (sc == LLJoint::SupportCategory::SUPPORT_BASE)
+ {
+ gGL.diffuseColor3f( 1.0f, 0.5f, 0.5f );
+ }
+ else
+ {
+ gGL.diffuseColor3f( 0.5f, 1.0f, 0.5f );
+ }
+
gGL.vertex3fv(v[0].mV);
gGL.vertex3fv(v[1].mV);
@@ -1406,7 +1415,14 @@ void LLVOAvatar::renderBones()
LLGLDepthTest depth_under(GL_TRUE, GL_FALSE, GL_GREATER);
// Unoccluded bone portions
- gGL.diffuseColor3f( 1.0f, 0.f, 0.0f );
+ if (sc == LLJoint::SupportCategory::SUPPORT_BASE)
+ {
+ gGL.diffuseColor3f( 1.0f, 0.0f, 0.0f );
+ }
+ else
+ {
+ gGL.diffuseColor3f( 0.0f, 1.0f, 0.0f );
+ }
gGL.vertex3fv(v[0].mV);
gGL.vertex3fv(v[1].mV);