summaryrefslogtreecommitdiff
path: root/indra/llappearance
diff options
context:
space:
mode:
authorDon Kjer <don@lindenlab.com>2012-09-13 22:14:53 +0000
committerDon Kjer <don@lindenlab.com>2012-09-13 22:14:53 +0000
commit5bb8962c4e2e1ca12d637fcddc02a78f5ecf7225 (patch)
treece95886fb4163fccef9df045bfe6b0088de4ffc8 /indra/llappearance
parent8ba2b388769e245ec1b49b7d6d4b0372d684ff86 (diff)
parentb4866775a2acc98ebcb3986d7779eea479028ff9 (diff)
Merge sunshine -> sunshine-experimental
Diffstat (limited to 'indra/llappearance')
-rw-r--r--indra/llappearance/llavatarappearance.cpp2
-rwxr-xr-xindra/llappearance/llavatarjointmesh.cpp5
-rwxr-xr-xindra/llappearance/llavatarjointmesh.h1
-rwxr-xr-x[-rw-r--r--]indra/llappearance/llwearable.cpp0
4 files changed, 7 insertions, 1 deletions
diff --git a/indra/llappearance/llavatarappearance.cpp b/indra/llappearance/llavatarappearance.cpp
index 824f0a1e32..8677a1daff 100644
--- a/indra/llappearance/llavatarappearance.cpp
+++ b/indra/llappearance/llavatarappearance.cpp
@@ -1046,7 +1046,7 @@ BOOL LLAvatarAppearance::loadMeshNodes()
// If this isn't set to white (1.0), avatars will *ALWAYS* be darker than their surroundings.
// Do not touch!!!
- mesh->setColor( 1.0f, 1.0f, 1.0f, 1.0f );
+ mesh->setColor( LLColor4::white );
LLPolyMesh *poly_mesh = NULL;
diff --git a/indra/llappearance/llavatarjointmesh.cpp b/indra/llappearance/llavatarjointmesh.cpp
index d39587defe..c611ab7cec 100755
--- a/indra/llappearance/llavatarjointmesh.cpp
+++ b/indra/llappearance/llavatarjointmesh.cpp
@@ -208,6 +208,11 @@ void LLAvatarJointMesh::setColor( F32 red, F32 green, F32 blue, F32 alpha )
mColor[3] = alpha;
}
+void LLAvatarJointMesh::setColor( const LLColor4& color )
+{
+ mColor = color;
+}
+
//--------------------------------------------------------------------
// LLAvatarJointMesh::getTexture()
diff --git a/indra/llappearance/llavatarjointmesh.h b/indra/llappearance/llavatarjointmesh.h
index 427375e733..2aade4d62b 100755
--- a/indra/llappearance/llavatarjointmesh.h
+++ b/indra/llappearance/llavatarjointmesh.h
@@ -101,6 +101,7 @@ public:
// Sets the shape color
void setColor( F32 red, F32 green, F32 blue, F32 alpha );
+ void setColor( const LLColor4& color );
// Sets the shininess
void setSpecular( const LLColor4& color, F32 shiny ) { /*mSpecular = color;*/ mShiny = shiny; };
diff --git a/indra/llappearance/llwearable.cpp b/indra/llappearance/llwearable.cpp
index 9e73a6669a..9e73a6669a 100644..100755
--- a/indra/llappearance/llwearable.cpp
+++ b/indra/llappearance/llwearable.cpp