mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 04:17:34 +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
|
@ -1802,7 +1802,7 @@ 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;
|
||||
|
|
Loading…
Reference in a new issue