mirror of
https://github.com/lubosz/overte.git
synced 2025-08-08 04:08:13 +02:00
fix grab.js
This commit is contained in:
parent
42a3834e1a
commit
cdc248129c
1 changed files with 2 additions and 1 deletions
|
@ -8,7 +8,7 @@
|
||||||
//
|
//
|
||||||
// Grab's physically moveable entities with the mouse, by applying a spring force.
|
// Grab's physically moveable entities with the mouse, by applying a spring force.
|
||||||
//
|
//
|
||||||
// Updated November 22, 2016 by Philip Rosedale: Add distance attenuation of grab effect
|
// Updated November 22, 2016 by Philip Rosedale: Add distance attenuation of grab effect
|
||||||
//
|
//
|
||||||
// Distributed under the Apache License, Version 2.0.
|
// Distributed under the Apache License, Version 2.0.
|
||||||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
|
@ -444,6 +444,7 @@ Grabber.prototype.releaseEvent = function(event) {
|
||||||
this.actionID = null;
|
this.actionID = null;
|
||||||
|
|
||||||
Pointers.setRenderState(this.mouseRayEntities, "");
|
Pointers.setRenderState(this.mouseRayEntities, "");
|
||||||
|
Pointers.setLockEndUUID(this.mouseRayEntities, null, false);
|
||||||
|
|
||||||
var args = "mouse";
|
var args = "mouse";
|
||||||
Entities.callEntityMethod(this.entityID, "releaseGrab", args);
|
Entities.callEntityMethod(this.entityID, "releaseGrab", args);
|
||||||
|
|
Loading…
Reference in a new issue