Update editEntities to not select new entity when edit tools are off

This commit is contained in:
Ryan Huffman 2015-02-12 13:09:37 -08:00
parent fa5eebd93e
commit 51ce8c7100

View file

@ -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()) {