Fix mini tablet sometimes flipping when grabbed by other hand

This commit is contained in:
David Rowe 2018-09-15 10:14:22 +12:00
parent 45281960af
commit 9d051b71bb

View file

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