From 546e908633f41206c032b114eaa3af179b5bc770 Mon Sep 17 00:00:00 2001 From: "James B. Pollack" Date: Sun, 27 Dec 2015 12:46:40 -0800 Subject: [PATCH] protect blacklisting to my id --- examples/controllers/handControllerGrab.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/controllers/handControllerGrab.js b/examples/controllers/handControllerGrab.js index aa416068f2..80fcaa3f6f 100644 --- a/examples/controllers/handControllerGrab.js +++ b/examples/controllers/handControllerGrab.js @@ -777,7 +777,7 @@ function MyController(hand) { } var intersection; - + if(USE_BLACKLIST===true){ intersection = Entities.findRayIntersection(pickRay, true, [], blacklist); } @@ -1662,7 +1662,7 @@ handleHandMessages = function(channel, message, sender) { } catch (e) { } } - else if (channel === 'Hifi-Hand-RayPick-Blacklist') { + else if (channel === 'Hifi-Hand-RayPick-Blacklist' && sender === MyAvatar.sessionUUID) { try { var data = JSON.parse(message); var action = data.action;