From 7dcbb5849ae0ccfe45db2b717aa88829f78840cc Mon Sep 17 00:00:00 2001 From: Seth Alves Date: Tue, 20 Oct 2015 17:44:12 -0700 Subject: [PATCH] another bug --- examples/controllers/handControllerGrab.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/controllers/handControllerGrab.js b/examples/controllers/handControllerGrab.js index 1ed3406c61..9176394a95 100644 --- a/examples/controllers/handControllerGrab.js +++ b/examples/controllers/handControllerGrab.js @@ -381,7 +381,7 @@ function MyController(hand, triggerAction) { var propsForCandidate = Entities.getEntityProperties(nearbyEntities[i], ["position", "name", "collisionsWillMove", "locked"]); distance = Vec3.distance(propsForCandidate.position, handPosition); - if (distance < minDistance && props.name !== "pointer") { + if (distance < minDistance && propsForCandidate.name !== "pointer") { this.grabbedEntity = nearbyEntities[i]; minDistance = distance; props = propsForCandidate;