mirror of
https://github.com/lubosz/overte.git
synced 2025-04-19 08:58:02 +02:00
do not manage identity data without identity data received
This commit is contained in:
parent
f1db0e9e53
commit
089a2bb362
2 changed files with 8 additions and 0 deletions
|
@ -285,6 +285,13 @@ void AvatarMixer::start() {
|
|||
// is guaranteed to not be accessed by other thread
|
||||
void AvatarMixer::manageIdentityData(const SharedNodePointer& node) {
|
||||
AvatarMixerClientData* nodeData = reinterpret_cast<AvatarMixerClientData*>(node->getLinkedData());
|
||||
|
||||
// there is no need to manage identity data we haven't received yet
|
||||
// so bail early if we've never received an identity packet for this avatar
|
||||
if (!nodeData->getAvatar().hasProcessedFirstIdentity()) {
|
||||
return;
|
||||
}
|
||||
|
||||
bool sendIdentity = false;
|
||||
if (nodeData && nodeData->getAvatarSessionDisplayNameMustChange()) {
|
||||
AvatarData& avatar = nodeData->getAvatar();
|
||||
|
|
|
@ -627,6 +627,7 @@ public:
|
|||
void markIdentityDataChanged() { _identityDataChanged = true; }
|
||||
|
||||
void pushIdentitySequenceNumber() { ++_identitySequenceNumber; };
|
||||
bool hasProcessedFirstIdentity() const { return _hasProcessedFirstIdentity; }
|
||||
|
||||
float getDensity() const { return _density; }
|
||||
|
||||
|
|
Loading…
Reference in a new issue