Primary thumb press can be used to drop an equipped object

This commit is contained in:
Anthony J. Thibault 2016-06-20 11:22:56 -07:00
parent 14efd5dc12
commit 7ccbc9e6eb

View file

@ -1711,7 +1711,7 @@ function MyController(hand) {
return;
}
if (this.state == STATE_HOLD && dropDetected && this.triggerSmoothedGrab()) {
if ((this.state == STATE_HOLD && dropDetected && this.triggerSmoothedGrab()) || this.thumbPressed()) {
this.setState(STATE_OFF, "drop detected");
this.callEntityMethodOnGrabbed("releaseEquip");
return;