mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 17:14:59 +02:00
removed search laser in edit mode for 2d mode
This commit is contained in:
parent
e99683fdcf
commit
8cbe63f296
1 changed files with 1 additions and 1 deletions
|
@ -1801,7 +1801,7 @@ function MyController(hand) {
|
|||
|
||||
this.processStylus();
|
||||
|
||||
if (isInEditMode() && !this.isNearStylusTarget && HMD.isHandControllerAvailable()) {
|
||||
if (isInEditMode() && !this.isNearStylusTarget && HMD.isHandControllerAvailable() && HMD.active) {
|
||||
// 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;
|
||||
|
|
Loading…
Reference in a new issue