From 04eed64c7cdfd01853e1b5ff1f843e6a42fb8053 Mon Sep 17 00:00:00 2001 From: Seth Alves Date: Mon, 28 Sep 2015 15:26:32 -0700 Subject: [PATCH] fix bug in JointState::translationIsDefault --- libraries/animation/src/JointState.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/animation/src/JointState.cpp b/libraries/animation/src/JointState.cpp index 935319b489..e838acf72a 100644 --- a/libraries/animation/src/JointState.cpp +++ b/libraries/animation/src/JointState.cpp @@ -290,7 +290,7 @@ bool JointState::rotationIsDefault(const glm::quat& rotation, float tolerance) c } bool JointState::translationIsDefault(const glm::vec3& translation, float tolerance) const { - return glm::distance(_defaultTranslation, translation * _unitsScale) < tolerance; + return glm::distance(_defaultTranslation * _unitsScale, translation * _unitsScale) < tolerance; } glm::quat JointState::getDefaultRotationInParentFrame() const {