Moved function to a differnt location that handles both mouse and controller inputs.

This commit is contained in:
Mike Moody 2017-07-19 01:49:39 -07:00
parent 53f581c3d4
commit c56450b986
2 changed files with 1 additions and 2 deletions

View file

@ -943,8 +943,6 @@ function mouseClickEvent(event) {
selectionManager.addEntity(foundEntity, true);
}
entityIconOverlayManager.setIconsSelectable(selectionManager.selections,true);
if (wantDebug) {
print("Model selected: " + foundEntity);
}

View file

@ -4064,6 +4064,7 @@ SelectionDisplay = (function() {
// if another mouse button than left is pressed ignore it
return false;
}
entityIconOverlayManager.setIconsSelectable(selectionManager.selections,true);
var somethingClicked = false;
var pickRay = generalComputePickRay(event.x, event.y);