mirror of
https://github.com/overte-org/overte.git
synced 2025-08-05 06:19:49 +02:00
Fix non-dominant hand ciursor dot showing when it shouldn't
This commit is contained in:
parent
52bb4a0f77
commit
01f37b53e9
1 changed files with 11 additions and 9 deletions
|
@ -182,7 +182,7 @@ Laser = function (side) {
|
|||
isLaserOn = true;
|
||||
display(pickRay.origin, pickRay.direction, laserLength, true, hand.triggerClicked());
|
||||
|
||||
} else {
|
||||
} else if (uiEntityIDs.length > 0) {
|
||||
|
||||
// Special UI cursor.
|
||||
intersection = Overlays.findRayIntersection(pickRay, PRECISION_PICKING, uiEntityIDs, NO_EXCLUDE_IDS,
|
||||
|
@ -198,18 +198,20 @@ Laser = function (side) {
|
|||
}
|
||||
isLaserOn = true;
|
||||
display(pickRay.origin, pickRay.direction, laserLength, false, false);
|
||||
} else {
|
||||
if (isLaserOn) {
|
||||
isLaserOn = false;
|
||||
hide();
|
||||
}
|
||||
} else if (isLaserOn) {
|
||||
isLaserOn = false;
|
||||
hide();
|
||||
}
|
||||
|
||||
} else {
|
||||
intersection = { intersects: false };
|
||||
if (isLaserOn) {
|
||||
isLaserOn = false;
|
||||
hide();
|
||||
}
|
||||
}
|
||||
} else {
|
||||
intersection = {
|
||||
intersects: false
|
||||
};
|
||||
intersection = { intersects: false };
|
||||
if (isLaserOn) {
|
||||
isLaserOn = false;
|
||||
hide();
|
||||
|
|
Loading…
Reference in a new issue