diff --git a/examples/editEntities.js b/examples/editEntities.js index d12d865d08..3a70d2020e 100644 --- a/examples/editEntities.js +++ b/examples/editEntities.js @@ -671,12 +671,12 @@ function mouseClickEvent(event) { orientation = MyAvatar.orientation; intersection = rayPlaneIntersection(pickRay, P, Quat.getFront(orientation)); - if (!event.isShifted) { - selectionManager.clearSelections(); - } - var toggle = event.isShifted; - selectionManager.addEntity(foundEntity, toggle); + if (!event.isShifted) { + selectionManager.setSelections([foundEntity]); + } else { + selectionManager.addEntity(foundEntity, true); + } print("Model selected: " + foundEntity.id); selectionDisplay.select(selectedEntityID, event);