mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-24 09:04:23 +02:00
Destroy overlays when trigger released
This commit is contained in:
parent
974dff36b0
commit
a37f0137e7
1 changed files with 5 additions and 0 deletions
|
@ -3774,6 +3774,11 @@ function MyController(hand) {
|
||||||
this.release = function() {
|
this.release = function() {
|
||||||
this.turnOffVisualizations();
|
this.turnOffVisualizations();
|
||||||
|
|
||||||
|
entitiesWithHoverOverlays.forEach(function (element) {
|
||||||
|
HoverOverlay.destroyHoverOverlay(element);
|
||||||
|
});
|
||||||
|
entitiesWithHoverOverlays = [];
|
||||||
|
|
||||||
if (this.grabbedThingID !== null) {
|
if (this.grabbedThingID !== null) {
|
||||||
|
|
||||||
Messages.sendMessage('Hifi-Teleport-Ignore-Remove', this.grabbedThingID);
|
Messages.sendMessage('Hifi-Teleport-Ignore-Remove', this.grabbedThingID);
|
||||||
|
|
Loading…
Reference in a new issue