mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 00:52:27 +02:00
wrap selection print in wantDebug to avoid spamming logs in HMD
This commit is contained in:
parent
478ec48b63
commit
269d8312e2
1 changed files with 4 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue