Merge pull request #1137 from ey6es/ick

Fix for arm on old skeleton.
This commit is contained in:
Andrzej Kapolka 2013-10-28 17:29:09 -07:00
commit e106514af0

View file

@ -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) {