mirror of
https://github.com/lubosz/overte.git
synced 2025-04-08 09:43:01 +02:00
Merge pull request #10316 from sethalves/fix-stray-edit-laser
fix -- show hand lasers when edit is enabled, but not if there are not hand-controllers
This commit is contained in:
commit
5c46d1e3ff
1 changed files with 3 additions and 3 deletions
|
@ -1801,15 +1801,15 @@ function MyController(hand) {
|
|||
}
|
||||
|
||||
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.
|
||||
var rayPickInfo = this.calcRayPickInfo(this.hand);
|
||||
this.intersectionDistance = (rayPickInfo.entityID || rayPickInfo.overlayID) ? rayPickInfo.distance : 0;
|
||||
this.searchIndicatorOn(rayPickInfo.searchRay);
|
||||
} else {
|
||||
this.searchIndicatorOff();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
this.handleLaserOnHomeButton = function(rayPickInfo) {
|
||||
|
|
Loading…
Reference in a new issue