No haptic pulse in edit modes when hand enters near-grab distance

This commit is contained in:
David Rowe 2017-07-04 15:59:04 +12:00
parent 83a78aa407
commit cadd4685ee

View file

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