mirror of
https://github.com/overte-org/overte.git
synced 2025-07-22 11:57:05 +02:00
No haptic pulse in edit modes when hand enters near-grab distance
This commit is contained in:
parent
83a78aa407
commit
cadd4685ee
1 changed files with 1 additions and 1 deletions
|
@ -1786,7 +1786,7 @@ function MyController(hand) {
|
|||
var nonTabletEntities = grabbableEntities.filter(function(entityID) {
|
||||
return entityID != HMD.tabletID && entityID != HMD.homeButtonID;
|
||||
});
|
||||
if (nonTabletEntities.length > 0) {
|
||||
if (nonTabletEntities.length > 0 && !isInEditMode() && !isInVREditMode()) {
|
||||
Controller.triggerHapticPulse(1, 20, this.hand);
|
||||
}
|
||||
this.grabPointIntersectsEntity = true;
|
||||
|
|
Loading…
Reference in a new issue