From b27e819d59a38c54636c55846b61c75c9864c17d Mon Sep 17 00:00:00 2001 From: ksuprynowicz Date: Wed, 17 Aug 2022 19:13:47 +0200 Subject: [PATCH] Fixed callEntityMethod arguments in grab.js --- scripts/system/controllers/grab.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/system/controllers/grab.js b/scripts/system/controllers/grab.js index cd18c38302..0fc873240e 100644 --- a/scripts/system/controllers/grab.js +++ b/scripts/system/controllers/grab.js @@ -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({