mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 19:29:47 +02:00
use boolean from RTClick and LTClick
This commit is contained in:
parent
760223a550
commit
f02f619597
1 changed files with 2 additions and 2 deletions
|
@ -191,8 +191,8 @@ function controllerComputePickRay(hand) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function makeClickHandler(hand) {
|
function makeClickHandler(hand) {
|
||||||
return function (value) {
|
return function(clicked) {
|
||||||
if (isShowingOverlays) {
|
if (clicked && isShowingOverlays) {
|
||||||
var pickRay = controllerComputePickRay(hand);
|
var pickRay = controllerComputePickRay(hand);
|
||||||
if (pickRay) {
|
if (pickRay) {
|
||||||
var overlayIntersection = Overlays.findRayIntersection(pickRay);
|
var overlayIntersection = Overlays.findRayIntersection(pickRay);
|
||||||
|
|
Loading…
Reference in a new issue