From 43b92299d6b60a787648061210f623a34f29c1df Mon Sep 17 00:00:00 2001 From: Dante Ruiz Date: Thu, 12 Apr 2018 10:35:29 -0700 Subject: [PATCH] changing highlighting percentage --- scripts/system/controllers/grab.js | 3 ++- scripts/system/libraries/controllerDispatcherUtils.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/system/controllers/grab.js b/scripts/system/controllers/grab.js index 1171703847..333180a631 100644 --- a/scripts/system/controllers/grab.js +++ b/scripts/system/controllers/grab.js @@ -15,7 +15,7 @@ // /* global MyAvatar, Entities, Script, Camera, Vec3, Reticle, Overlays, getEntityCustomData, Messages, Quat, Controller, - isInEditMode, HMD entityIsGrabbable, Picks, PickType, Pointers*/ + isInEditMode, HMD entityIsGrabbable, Picks, PickType, Pointers, unhighlightTargetEntity*/ (function() { // BEGIN LOCAL_SCOPE @@ -354,6 +354,7 @@ Grabber.prototype.pressEvent = function(event) { Pointers.setRenderState(this.mouseRayEntities, "grabbed"); Pointers.setLockEndUUID(this.mouseRayEntities, pickResults.objectID, false); + unhighlightTargetEntity(pickResults.objectID); mouse.startDrag(event); diff --git a/scripts/system/libraries/controllerDispatcherUtils.js b/scripts/system/libraries/controllerDispatcherUtils.js index 827b29e78a..9edd6d006a 100644 --- a/scripts/system/libraries/controllerDispatcherUtils.js +++ b/scripts/system/libraries/controllerDispatcherUtils.js @@ -103,7 +103,7 @@ DISPATCHER_HOVERING_STYLE = { outlineOccludedColor: {red: 255, green: 128, blue: 128}, outlineOccludedAlpha:0.0, fillUnoccludedColor: {red: 255, green: 255, blue: 255}, - fillUnoccludedAlpha: 0.15, + fillUnoccludedAlpha: 0.12, fillOccludedColor: {red: 255, green: 255, blue: 255}, fillOccludedAlpha: 0.0 };