Add HmdMultiSelection on inworld Selection

Add HmdMultiSelection on inworld Selection
This commit is contained in:
Alezia Kurdis 2020-09-30 00:39:36 -04:00 committed by GitHub
parent 4f3f2a079e
commit 2a0d508bb6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -104,6 +104,8 @@ var entityIconOverlayManager = new EntityIconOverlayManager(['Light', 'ParticleE
}
});
var hmdMultiSelectMode = false;
var cameraManager = new CameraManager();
var grid = new Grid();
@ -1131,7 +1133,11 @@ function handleOverlaySelectionToolUpdates(channel, message, sender) {
var entity = entityIconOverlayManager.findEntity(data.overlayID);
if (entity !== null) {
selectionManager.setSelections([entity], this);
if (hmdMultiSelectMode) {
selectionManager.addEntity(entity, true, this);
} else {
selectionManager.setSelections([entity], this);
}
}
}
}