From 51ce8c7100486db53bb57654706d44db465eb2e5 Mon Sep 17 00:00:00 2001 From: Ryan Huffman Date: Thu, 12 Feb 2015 13:09:37 -0800 Subject: [PATCH] Update editEntities to not select new entity when edit tools are off --- examples/editEntities.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/editEntities.js b/examples/editEntities.js index f25a873992..6938fc86b7 100644 --- a/examples/editEntities.js +++ b/examples/editEntities.js @@ -533,7 +533,9 @@ function highlightEntityUnderCursor(position, accurateRay) { function mouseReleaseEvent(event) { if (placingEntityID) { - selectionManager.setSelections([placingEntityID]); + if (isActive) { + selectionManager.setSelections([placingEntityID]); + } placingEntityID = null; } if (isActive && selectionManager.hasSelection()) {