mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 02:36:54 +02:00
Primary thumb press can be used to drop an equipped object
This commit is contained in:
parent
14efd5dc12
commit
7ccbc9e6eb
1 changed files with 1 additions and 1 deletions
|
@ -1711,7 +1711,7 @@ function MyController(hand) {
|
||||||
return;
|
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.setState(STATE_OFF, "drop detected");
|
||||||
this.callEntityMethodOnGrabbed("releaseEquip");
|
this.callEntityMethodOnGrabbed("releaseEquip");
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue