From 9baf087c9a936aa088c9b63f1d098f4dfb5ab85b Mon Sep 17 00:00:00 2001 From: Philip Rosedale Date: Fri, 24 May 2013 14:29:26 -0700 Subject: [PATCH] Avatar renders right arm in 1P mode --- interface/src/Avatar.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/interface/src/Avatar.cpp b/interface/src/Avatar.cpp index 21dea8886f..7568e45116 100644 --- a/interface/src/Avatar.cpp +++ b/interface/src/Avatar.cpp @@ -1139,9 +1139,14 @@ void Avatar::renderBody(bool lookingInMirror) { if (lookingInMirror || _owningAgent || distanceToCamera > RENDER_OPAQUE_BEYOND) { _head.render(lookingInMirror); } - } else if (_owningAgent || distanceToCamera > RENDER_TRANSLUCENT_BEYOND) { + } else if (_owningAgent || distanceToCamera > RENDER_TRANSLUCENT_BEYOND + || b == AVATAR_JOINT_RIGHT_ELBOW + || b == AVATAR_JOINT_RIGHT_WRIST + || b == AVATAR_JOINT_RIGHT_FINGERTIPS ) { // Render the sphere at the joint - if (_owningAgent) { + if (_owningAgent || b == AVATAR_JOINT_RIGHT_ELBOW + || b == AVATAR_JOINT_RIGHT_WRIST + || b == AVATAR_JOINT_RIGHT_FINGERTIPS ) { glColor3f(skinColor[0] + _joint[b].touchForce * 0.3f, skinColor[1] - _joint[b].touchForce * 0.2f, skinColor[2] - _joint[b].touchForce * 0.1f);