From 3ece763a8e52c1b14721cbfd8f41f428dca469f3 Mon Sep 17 00:00:00 2001 From: Seth Alves Date: Tue, 17 Sep 2019 10:52:55 -0700 Subject: [PATCH] code review --- interface/src/avatar/MyHead.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/interface/src/avatar/MyHead.cpp b/interface/src/avatar/MyHead.cpp index 1fc134169a..e5c8b71ea2 100644 --- a/interface/src/avatar/MyHead.cpp +++ b/interface/src/avatar/MyHead.cpp @@ -69,13 +69,13 @@ void MyHead::simulate(float deltaTime) { float leftEyeBlink = userInputMapper->getActionState(controller::Action::LEFT_EYE_BLINK); float rightEyeBlink = userInputMapper->getActionState(controller::Action::RIGHT_EYE_BLINK); _blendshapeCoefficients.resize(std::max(_blendshapeCoefficients.size(), 2)); - _blendshapeCoefficients[EYE_BLINK_L_INDEX] = leftEyeBlink; - _blendshapeCoefficients[EYE_BLINK_R_INDEX] = rightEyeBlink; + _blendshapeCoefficients[EYE_BLINK_INDICES[0]] = leftEyeBlink; + _blendshapeCoefficients[EYE_BLINK_INDICES[1]] = rightEyeBlink; } else { const float FULLY_OPEN = 0.0f; _blendshapeCoefficients.resize(std::max(_blendshapeCoefficients.size(), 2)); - _blendshapeCoefficients[EYE_BLINK_L_INDEX] = FULLY_OPEN; - _blendshapeCoefficients[EYE_BLINK_R_INDEX] = FULLY_OPEN; + _blendshapeCoefficients[EYE_BLINK_INDICES[0]] = FULLY_OPEN; + _blendshapeCoefficients[EYE_BLINK_INDICES[1]] = FULLY_OPEN; } } Parent::simulate(deltaTime);