mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 15:49:24 +02:00
Fix mini tablet sometimes flipping when grabbed by other hand
This commit is contained in:
parent
45281960af
commit
9d051b71bb
1 changed files with 5 additions and 0 deletions
|
@ -397,6 +397,11 @@
|
||||||
deltaRotation,
|
deltaRotation,
|
||||||
localRotation;
|
localRotation;
|
||||||
|
|
||||||
|
if (Overlays.getProperty(miniOverlay, "parentJointIndex") !== handJointIndex(uiHand)) {
|
||||||
|
// Overlay has been grabbed by other hand but this script hasn't received notification yet.
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
defaultLocalRotation = MINI_ROTATIONS[uiHand];
|
defaultLocalRotation = MINI_ROTATIONS[uiHand];
|
||||||
handOrientation =
|
handOrientation =
|
||||||
Quat.multiply(MyAvatar.orientation, MyAvatar.getAbsoluteJointRotationInObjectFrame(handJointIndex(uiHand)));
|
Quat.multiply(MyAvatar.orientation, MyAvatar.getAbsoluteJointRotationInObjectFrame(handJointIndex(uiHand)));
|
||||||
|
|
Loading…
Reference in a new issue