From e2b6be2a92d540a830b69b7493a1e48e92223fd4 Mon Sep 17 00:00:00 2001 From: Ryan Huffman Date: Tue, 3 Feb 2015 11:58:39 -0800 Subject: [PATCH] Fix focus behavior when selecting an item without shift --- examples/editEntities.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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);