highlight the grabbed hotspot when the drop gesture is detected

This commit is contained in:
Anthony J. Thibault 2016-07-14 12:07:07 -07:00
parent e62d34136d
commit eb5107d9a5

View file

@ -1882,6 +1882,14 @@ function MyController(hand) {
}
if (this.state == STATE_HOLD) {
// highlight the grabbed hotspot when the dropGesture is detected.
if (dropDetected) {
entityPropertiesCache.addEntity(this.grabbedHotspot.entityID);
equipHotspotBuddy.updateHotspot(this.grabbedHotspot, timestamp);
equipHotspotBuddy.highlightHotspot(this.grabbedHotspot);
}
if (dropDetected && this.triggerSmoothedGrab()) {
this.callEntityMethodOnGrabbed("releaseEquip");
this.setState(STATE_OFF, "drop gesture detected");