mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 00:17:25 +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() {
|
Grabber.prototype.cleanup = function() {
|
||||||
Pointers.removePointer(this.mouseRayEntities);
|
Pointers.removePointer(this.mouseRayEntities);
|
||||||
Picks.removePick(this.mouseRayOverlays);
|
Picks.removePick(this.mouseRayOverlays);
|
||||||
|
if (this.grabID) {
|
||||||
|
MyAvatar.releaseGrab(this.grabID);
|
||||||
|
this.grabID = null;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
var grabber = new Grabber();
|
var grabber = new Grabber();
|
||||||
|
|
Loading…
Reference in a new issue