removed search laser in edit mode for 2d mode

This commit is contained in:
Dante Ruiz 2017-07-18 22:45:54 +01:00
parent e99683fdcf
commit 8cbe63f296

View file

@ -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;