mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 17:03:58 +02:00
Fixed callEntityMethod arguments in grab.js
This commit is contained in:
parent
8d5403362d
commit
d0b80ce64b
1 changed files with 2 additions and 2 deletions
|
@ -344,7 +344,7 @@ Grabber.prototype.pressEvent = function(event) {
|
|||
this.computeNewGrabPlane();
|
||||
this.moveEvent(event);
|
||||
|
||||
var args = "mouse";
|
||||
var args = ["mouse"];
|
||||
Entities.callEntityMethod(this.entityID, "startDistanceGrab", args);
|
||||
|
||||
Messages.sendLocalMessage('Hifi-Object-Manipulation', JSON.stringify({
|
||||
|
@ -378,7 +378,7 @@ Grabber.prototype.releaseEvent = function(event) {
|
|||
Pointers.setRenderState(this.mouseRayEntities, "");
|
||||
Pointers.setLockEndUUID(this.mouseRayEntities, null, false);
|
||||
|
||||
var args = "mouse";
|
||||
var args = ["mouse"];
|
||||
Entities.callEntityMethod(this.entityID, "releaseGrab", args);
|
||||
|
||||
Messages.sendLocalMessage('Hifi-Object-Manipulation', JSON.stringify({
|
||||
|
|
Loading…
Reference in a new issue