only render local toy ball sphere if there is an actual toy ball

This commit is contained in:
ZappoMan 2013-12-12 15:47:51 -08:00
parent 08591481a6
commit 0560b16133

View file

@ -377,7 +377,7 @@ void Hand::render( bool isMine) {
} }
// Render toy ball // Render toy ball
if (isMine) { if (isMine && _hasToyBall) {
glPushMatrix(); glPushMatrix();
glColor3f(1, 0, 0); glColor3f(1, 0, 0);
glTranslatef(_toyBallPosition.x, _toyBallPosition.y, _toyBallPosition.z); glTranslatef(_toyBallPosition.x, _toyBallPosition.y, _toyBallPosition.z);