mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 17:14:59 +02:00
block selecting overlays with other hand
This commit is contained in:
parent
ad9ec26781
commit
e8068fea0a
1 changed files with 8 additions and 6 deletions
|
@ -963,13 +963,15 @@ function handleOverlaySelectionToolUpdates(channel, message, sender) {
|
|||
var data = JSON.parse(message);
|
||||
|
||||
if (data.method === "selectOverlay") {
|
||||
if (wantDebug) {
|
||||
print("setting selection to overlay " + data.overlayID);
|
||||
}
|
||||
var entity = entityIconOverlayManager.findEntity(data.overlayID);
|
||||
if (!selectionDisplay.triggered() || selectionDisplay.triggeredHand === data.hand) {
|
||||
if (wantDebug) {
|
||||
print("setting selection to overlay " + data.overlayID);
|
||||
}
|
||||
var entity = entityIconOverlayManager.findEntity(data.overlayID);
|
||||
|
||||
if (entity !== null) {
|
||||
selectionManager.setSelections([entity]);
|
||||
if (entity !== null) {
|
||||
selectionManager.setSelections([entity]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue