mirror of
https://github.com/overte-org/overte.git
synced 2025-04-14 07:47:30 +02:00
removed distance check for redraw to prevent nametag in user's body
This commit is contained in:
parent
a3ec365f6c
commit
83546de9da
1 changed files with 2 additions and 6 deletions
|
@ -344,24 +344,20 @@ function makeNameTag(uuid) {
|
|||
}, REDRAW_TIMEOUT_AMOUNT_MS);
|
||||
}
|
||||
|
||||
|
||||
console.log("\n\nV2\n\n");
|
||||
// Check to see if the display named changed or if the distance is big enough to need a redraw.
|
||||
var MAX_RADIUS_IGNORE_METERS = 22;
|
||||
var MAX_ON_MODE_DISTANCE = 35;
|
||||
var CHECK_AVATAR = true;
|
||||
var MIN_DISTANCE_FOR_REDRAW_METERS = 0.1;
|
||||
function maybeRedraw(uuid) {
|
||||
var avatar = _this.avatars[uuid];
|
||||
getAvatarData(uuid);
|
||||
|
||||
getDistance(uuid);
|
||||
var distanceDelta = Math.abs(avatar.currentDistance - avatar.previousDistance);
|
||||
|
||||
var name = getCorrectName(uuid);
|
||||
|
||||
if (avatar.previousName !== name) {
|
||||
updateName(uuid, name);
|
||||
} else if (distanceDelta > MIN_DISTANCE_FOR_REDRAW_METERS) {
|
||||
} else {
|
||||
redraw(uuid);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue