Merge pull request #11761 from ctrlaltdavid/21593

Don't move or rotate entities if Alt or Meta keys are pressed
This commit is contained in:
Seth Alves 2017-11-07 09:33:21 -08:00 committed by GitHub
commit ce7d0c324b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -315,6 +315,10 @@ Grabber.prototype.pressEvent = function(event) {
return;
}
if (event.isAlt || event.isMeta) {
return;
}
if (Overlays.getOverlayAtPoint(Reticle.position) > 0) {
// the mouse is pointing at an overlay; don't look for entities underneath the overlay.
return;