Merge pull request #4277 from huffman/fix-select-box

Update editEntities to not select new entity when edit tools are off
This commit is contained in:
Brad Hefta-Gaub 2015-02-13 10:50:11 -08:00
commit 59b2c38eb1

View file

@ -534,7 +534,9 @@ function highlightEntityUnderCursor(position, accurateRay) {
function mouseReleaseEvent(event) { function mouseReleaseEvent(event) {
if (placingEntityID) { if (placingEntityID) {
selectionManager.setSelections([placingEntityID]); if (isActive) {
selectionManager.setSelections([placingEntityID]);
}
placingEntityID = null; placingEntityID = null;
} }
if (isActive && selectionManager.hasSelection()) { if (isActive && selectionManager.hasSelection()) {