Merge pull request #12473 from misslivirose/fix-log-spam

Logspam fix for editing in HMD mode
This commit is contained in:
Thijs Wenker 2018-02-28 01:59:25 +01:00 committed by GitHub
commit 6bf1c9878f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -814,13 +814,16 @@ function findClickedEntity(event) {
// Handles selections on overlays while in edit mode by querying entities from
// entityIconOverlayManager.
function handleOverlaySelectionToolUpdates(channel, message, sender) {
var wantDebug = false;
if (sender !== MyAvatar.sessionUUID || channel !== 'entityToolUpdates')
return;
var data = JSON.parse(message);
if (data.method === "selectOverlay") {
print("setting selection to overlay " + data.overlayID);
if (wantDebug) {
print("setting selection to overlay " + data.overlayID);
}
var entity = entityIconOverlayManager.findEntity(data.overlayID);
if (entity !== null) {