From c3f2f5779ab45352575330a1acbdd6f8005e70d5 Mon Sep 17 00:00:00 2001 From: Kunal Gosar Date: Sat, 11 Feb 2017 15:46:49 -0800 Subject: [PATCH] fix if else syntax --- interface/src/avatar/MyAvatar.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/interface/src/avatar/MyAvatar.cpp b/interface/src/avatar/MyAvatar.cpp index 8b05a55078..ded5d056bb 100644 --- a/interface/src/avatar/MyAvatar.cpp +++ b/interface/src/avatar/MyAvatar.cpp @@ -2361,18 +2361,16 @@ bool MyAvatar::hasDriveInput() const { } void MyAvatar::setAway(bool value) { - if (_isAway == value) { - return; - } _isAway = value; - if (_isAway): + if (_isAway) { emit wentAway(); - else: + } else { emit wentActive(); + } } // The resulting matrix is used to render the hand controllers, even if the camera is decoupled from the avatar. -// Specifically, if we are rendering using a third person camera. We would like to render the hand controllers in front of the camera, +// Specificly, if we are rendering using a third person camera. We would like to render the hand controllers in front of the camera, // not in front of the avatar. glm::mat4 MyAvatar::computeCameraRelativeHandControllerMatrix(const glm::mat4& controllerSensorMatrix) const {