mirror of
https://github.com/overte-org/overte.git
synced 2025-04-14 20:08:56 +02:00
Merge pull request #12473 from misslivirose/fix-log-spam
Logspam fix for editing in HMD mode
This commit is contained in:
commit
6bf1c9878f
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
|
// Handles selections on overlays while in edit mode by querying entities from
|
||||||
// entityIconOverlayManager.
|
// entityIconOverlayManager.
|
||||||
function handleOverlaySelectionToolUpdates(channel, message, sender) {
|
function handleOverlaySelectionToolUpdates(channel, message, sender) {
|
||||||
|
var wantDebug = false;
|
||||||
if (sender !== MyAvatar.sessionUUID || channel !== 'entityToolUpdates')
|
if (sender !== MyAvatar.sessionUUID || channel !== 'entityToolUpdates')
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var data = JSON.parse(message);
|
var data = JSON.parse(message);
|
||||||
|
|
||||||
if (data.method === "selectOverlay") {
|
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);
|
var entity = entityIconOverlayManager.findEntity(data.overlayID);
|
||||||
|
|
||||||
if (entity !== null) {
|
if (entity !== null) {
|
||||||
|
|
Loading…
Reference in a new issue