From 408a21b5154ad51ebfd6b3544370799f560e0877 Mon Sep 17 00:00:00 2001 From: Philip Rosedale Date: Wed, 8 May 2013 20:26:38 -0700 Subject: [PATCH] Fixed Eve's missing mouth and the bad triangles! --- interface/src/Avatar.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/interface/src/Avatar.cpp b/interface/src/Avatar.cpp index 4b09db0f05..a976555a70 100644 --- a/interface/src/Avatar.cpp +++ b/interface/src/Avatar.cpp @@ -949,7 +949,13 @@ void Avatar::renderHead(bool lookingInMirror) { glColor3f(0,0,0); glRotatef(_head.mouthPitch, 1, 0, 0); glRotatef(_head.mouthYaw, 0, 0, 1); - glScalef(_head.mouthWidth*(.7 + sqrt(_head.averageLoudness)/60.0), _head.mouthHeight*(1.0 + sqrt(_head.averageLoudness)/30.0), 1); + if (_head.averageLoudness > 1.f) { + glScalef(_head.mouthWidth * (.7f + sqrt(_head.averageLoudness) /60.f), + _head.mouthHeight * (1.f + sqrt(_head.averageLoudness) /30.f), 1); + } else { + glScalef(_head.mouthWidth, _head.mouthHeight, 1); + } + glutSolidCube(0.5); glPopMatrix();