mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 06:38:29 +02:00
release grasp at cleanup
This commit is contained in:
parent
3f89d73fc6
commit
6f76f0cbc0
1 changed files with 1 additions and 7 deletions
|
@ -200,13 +200,6 @@ function entityIsGrabbedByOther(entityID) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//make sure to clean this up when the script ends so we don't get stuck.
|
|
||||||
Script.scriptEnding.connect(function() {
|
|
||||||
MyController.endHandGrasp();
|
|
||||||
})
|
|
||||||
|
|
||||||
function MyController(hand) {
|
function MyController(hand) {
|
||||||
this.hand = hand;
|
this.hand = hand;
|
||||||
if (this.hand === RIGHT_HAND) {
|
if (this.hand === RIGHT_HAND) {
|
||||||
|
@ -1122,6 +1115,7 @@ function MyController(hand) {
|
||||||
|
|
||||||
this.cleanup = function() {
|
this.cleanup = function() {
|
||||||
this.release();
|
this.release();
|
||||||
|
this.endHandGrasp();
|
||||||
};
|
};
|
||||||
|
|
||||||
this.activateEntity = function(entityID, grabbedProperties) {
|
this.activateEntity = function(entityID, grabbedProperties) {
|
||||||
|
|
Loading…
Reference in a new issue