mirror of
https://github.com/overte-org/overte.git
synced 2025-04-14 22:08:43 +02:00
Fix tablet ending upside down if it expands into other grabbing hand
This commit is contained in:
parent
baf1e80445
commit
1faef9db8c
1 changed files with 6 additions and 0 deletions
|
@ -265,6 +265,7 @@
|
|||
localPosition: Vec3.multiply(MyAvatar.scale, MINI_POSITIONS[hand]),
|
||||
localRotation: MINI_ROTATIONS[hand],
|
||||
dimensions: Vec3.multiply(initialScale, MINI_DIMENSIONS),
|
||||
grabbable: true,
|
||||
visible: true
|
||||
});
|
||||
Overlays.editOverlay(miniUIOverlay, {
|
||||
|
@ -320,6 +321,11 @@
|
|||
miniInitialWidth = MINI_DIMENSIONS.x;
|
||||
miniTargetWidth = getTabletWidthFromSettings();
|
||||
miniTargetLocalRotation = Quat.multiply(miniExpandLocalRotation, miniExpandDeltaRotation);
|
||||
|
||||
// Don't let other hand grab while expanding.
|
||||
Overlays.editOverlay(miniOverlay, {
|
||||
grabbable: false
|
||||
});
|
||||
}
|
||||
|
||||
function sizeAboutHandles(scaleFactor) {
|
||||
|
|
Loading…
Reference in a new issue