mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 14:47:41 +02:00
show hand lasers when edit is enabled, but not if there are not hand-controllers
This commit is contained in:
parent
2a0fc5b34c
commit
4b0e7ceef5
1 changed files with 3 additions and 3 deletions
|
@ -1801,15 +1801,15 @@ function MyController(hand) {
|
||||||
}
|
}
|
||||||
|
|
||||||
this.processStylus();
|
this.processStylus();
|
||||||
|
|
||||||
if (isInEditMode() && !this.isNearStylusTarget) {
|
if (isInEditMode() && !this.isNearStylusTarget && HMD.isHandControllerAvailable()) {
|
||||||
// Always showing lasers while in edit mode and hands/stylus is not active.
|
// Always showing lasers while in edit mode and hands/stylus is not active.
|
||||||
var rayPickInfo = this.calcRayPickInfo(this.hand);
|
var rayPickInfo = this.calcRayPickInfo(this.hand);
|
||||||
this.intersectionDistance = (rayPickInfo.entityID || rayPickInfo.overlayID) ? rayPickInfo.distance : 0;
|
this.intersectionDistance = (rayPickInfo.entityID || rayPickInfo.overlayID) ? rayPickInfo.distance : 0;
|
||||||
this.searchIndicatorOn(rayPickInfo.searchRay);
|
this.searchIndicatorOn(rayPickInfo.searchRay);
|
||||||
} else {
|
} else {
|
||||||
this.searchIndicatorOff();
|
this.searchIndicatorOff();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
this.handleLaserOnHomeButton = function(rayPickInfo) {
|
this.handleLaserOnHomeButton = function(rayPickInfo) {
|
||||||
|
|
Loading…
Reference in a new issue