From 2bd8234fe574ec08eed8d9c04e938482315dbc27 Mon Sep 17 00:00:00 2001
From: "Brad Payne (Vir Linden)" <vir@lindenlab.com>
Date: Fri, 20 Nov 2015 08:08:57 -0500
Subject: [PATCH] SL-271 WIP - color base and extended bones differently.

---
 indra/newview/llvoavatar.cpp     | 20 ++++++++++++++++++--
 indra/newview/llvoavatarself.cpp |  1 -
 indra/newview/llvoavatarself.h   | 11 -----------
 3 files changed, 18 insertions(+), 14 deletions(-)

diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp
index 7d38cd116da..cf49cd2589d 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);
diff --git a/indra/newview/llvoavatarself.cpp b/indra/newview/llvoavatarself.cpp
index c1ca0aed69c..86084d50259 100755
--- a/indra/newview/llvoavatarself.cpp
+++ b/indra/newview/llvoavatarself.cpp
@@ -232,7 +232,6 @@ void LLVOAvatarSelf::initInstance()
 	{
 		mDebugBakedTextureTimes[i][0] = -1.0f;
 		mDebugBakedTextureTimes[i][1] = -1.0f;
-		mInitialBakeIDs[i] = LLUUID::null;
 	}
 
 	status &= buildMenus();
diff --git a/indra/newview/llvoavatarself.h b/indra/newview/llvoavatarself.h
index 257a760eeb2..c9c899afd68 100755
--- a/indra/newview/llvoavatarself.h
+++ b/indra/newview/llvoavatarself.h
@@ -101,17 +101,6 @@ class LLVOAvatarSelf :
 	// helper function. Passed in param is assumed to be in avatar's parameter list.
 	BOOL setParamWeight(const LLViewerVisualParam *param, F32 weight);
 
-
-
-/**                    Initialization
- **                                                                            **
- *******************************************************************************/
-
-private:
-	LLUUID mInitialBakeIDs[6];
-	//bool mInitialBakesLoaded;
-
-
 /********************************************************************************
  **                                                                            **
  **                    STATE
-- 
GitLab