mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 18:55:01 +02:00
release grab if scripts are reloaded before grab is released
This commit is contained in:
parent
2515c7f73e
commit
e8676f63c6
1 changed files with 4 additions and 0 deletions
|
@ -479,6 +479,10 @@ Grabber.prototype.keyPressEvent = function(event) {
|
|||
Grabber.prototype.cleanup = function() {
|
||||
Pointers.removePointer(this.mouseRayEntities);
|
||||
Picks.removePick(this.mouseRayOverlays);
|
||||
if (this.grabID) {
|
||||
MyAvatar.releaseGrab(this.grabID);
|
||||
this.grabID = null;
|
||||
}
|
||||
};
|
||||
|
||||
var grabber = new Grabber();
|
||||
|
|
Loading…
Reference in a new issue