mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 22:07:03 +02:00
only call selectEntity one time per trigger
This commit is contained in:
parent
d768809fbc
commit
46c8083fb9
1 changed files with 14 additions and 13 deletions
|
@ -73,8 +73,7 @@ Script.include("/~/system/libraries/utils.js");
|
||||||
method: "clearSelection",
|
method: "clearSelection",
|
||||||
hand: hand
|
hand: hand
|
||||||
}));
|
}));
|
||||||
}
|
} else {
|
||||||
}
|
|
||||||
if (this.selectedTarget.type === Picks.INTERSECTED_ENTITY) {
|
if (this.selectedTarget.type === Picks.INTERSECTED_ENTITY) {
|
||||||
Messages.sendLocalMessage("entityToolUpdates", JSON.stringify({
|
Messages.sendLocalMessage("entityToolUpdates", JSON.stringify({
|
||||||
method: "selectEntity",
|
method: "selectEntity",
|
||||||
|
@ -88,6 +87,8 @@ Script.include("/~/system/libraries/utils.js");
|
||||||
hand: hand
|
hand: hand
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
this.triggerClicked = true;
|
this.triggerClicked = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue