From 4e6edfc2db9866bf2543e88c4b4d7ac6d19b615a Mon Sep 17 00:00:00 2001 From: Andrzej Kapolka Date: Mon, 28 Oct 2013 17:28:10 -0700 Subject: [PATCH] Fix for arm on old skeleton. --- interface/src/avatar/MyAvatar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface/src/avatar/MyAvatar.cpp b/interface/src/avatar/MyAvatar.cpp index 32e244da29..45f88902ee 100644 --- a/interface/src/avatar/MyAvatar.cpp +++ b/interface/src/avatar/MyAvatar.cpp @@ -830,7 +830,7 @@ void MyAvatar::updateHandMovementAndTouching(float deltaTime, bool enableHandMov // reset hand and arm positions according to hand movement glm::vec3 up = orientation * IDENTITY_UP; - if (enableHandMovement) { + if (enableHandMovement && glm::length(_mouseRayDirection) > EPSILON) { // confine to the approximate shoulder plane glm::vec3 pointDirection = _mouseRayDirection; if (glm::dot(_mouseRayDirection, up) > 0.0f) {