mirror of
https://github.com/overte-org/overte.git
synced 2025-04-11 08:54:01 +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,
|
||||
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];
|
||||
handOrientation =
|
||||
Quat.multiply(MyAvatar.orientation, MyAvatar.getAbsoluteJointRotationInObjectFrame(handJointIndex(uiHand)));
|
||||
|
|
Loading…
Reference in a new issue