Destroy overlays when trigger released

This commit is contained in:
Zach Fox 2017-07-17 14:29:43 -07:00
parent 974dff36b0
commit a37f0137e7

View file

@ -3774,6 +3774,11 @@ function MyController(hand) {
this.release = function() {
this.turnOffVisualizations();
entitiesWithHoverOverlays.forEach(function (element) {
HoverOverlay.destroyHoverOverlay(element);
});
entitiesWithHoverOverlays = [];
if (this.grabbedThingID !== null) {
Messages.sendMessage('Hifi-Teleport-Ignore-Remove', this.grabbedThingID);