mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 12:04:18 +02:00
Fix for arm on old skeleton.
This commit is contained in:
parent
5f5b65121a
commit
4e6edfc2db
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue