Fix for arm on old skeleton.

This commit is contained in:
Andrzej Kapolka 2013-10-28 17:28:10 -07:00
parent 5f5b65121a
commit 4e6edfc2db

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