mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 05:52:31 +02:00
only render local toy ball sphere if there is an actual toy ball
This commit is contained in:
parent
08591481a6
commit
0560b16133
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue