mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 14:37:46 +02:00
call releaseEquip when an equipped entity is dropped with a secondary press
This commit is contained in:
parent
0cc317d13b
commit
89d7b8bfc6
1 changed files with 1 additions and 0 deletions
|
@ -2418,6 +2418,7 @@ function MyController(hand) {
|
||||||
// we have an equipped object and the secondary trigger was released
|
// we have an equipped object and the secondary trigger was released
|
||||||
// short-circuit the other checks and release it
|
// short-circuit the other checks and release it
|
||||||
this.preparingHoldRelease = false;
|
this.preparingHoldRelease = false;
|
||||||
|
this.callEntityMethodOnGrabbed("releaseEquip");
|
||||||
this.setState(STATE_OFF, "equipping ended via secondary press");
|
this.setState(STATE_OFF, "equipping ended via secondary press");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue