mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 15:43:50 +02:00
hacking
This commit is contained in:
parent
90cdeb9582
commit
5164aa4056
3 changed files with 8 additions and 7 deletions
|
@ -5209,6 +5209,7 @@ void Application::nodeAdded(SharedNodePointer node) const {
|
|||
// new avatar mixer, send off our identity packet right away
|
||||
|
||||
qDebug() << __FUNCTION__ << "about to call... getMyAvatar()->sendIdentityPacket();";
|
||||
getMyAvatar()->markIdentityDataChanged();
|
||||
getMyAvatar()->sendIdentityPacket();
|
||||
getMyAvatar()->resetLastSent();
|
||||
}
|
||||
|
|
|
@ -1489,6 +1489,9 @@ void AvatarData::processAvatarIdentity(const Identity& identity, bool& identityC
|
|||
return;
|
||||
}
|
||||
|
||||
qCDebug(avatars) << __FUNCTION__ << "got identity packet for avatar " << getSessionUUID()
|
||||
<< "identity.updatedAt:" << identity.updatedAt << "_identityUpdatedAt:" << _identityUpdatedAt;
|
||||
|
||||
if (_firstSkeletonCheck || (identity.skeletonModelURL != cannonicalSkeletonModelURL(emptyURL))) {
|
||||
setSkeletonModelURL(identity.skeletonModelURL);
|
||||
identityChanged = true;
|
||||
|
|
|
@ -624,7 +624,10 @@ public:
|
|||
static float _avatarSortCoefficientAge;
|
||||
|
||||
bool getIdentityDataChanged() const { return _identityDataChanged; } // has the identity data changed since the last time sendIdentityPacket() was called
|
||||
|
||||
void markIdentityDataChanged() {
|
||||
_identityDataChanged = true;
|
||||
_identityUpdatedAt = usecTimestampNow();
|
||||
}
|
||||
|
||||
signals:
|
||||
void displayNameChanged();
|
||||
|
@ -786,12 +789,6 @@ protected:
|
|||
bool _identityDataChanged { false };
|
||||
quint64 _identityUpdatedAt { 0 };
|
||||
|
||||
void markIdentityDataChanged() {
|
||||
_identityDataChanged = true;
|
||||
_identityUpdatedAt = usecTimestampNow();
|
||||
}
|
||||
|
||||
|
||||
private:
|
||||
friend void avatarStateFromFrame(const QByteArray& frameData, AvatarData* _avatar);
|
||||
static QUrl _defaultFullAvatarModelUrl;
|
||||
|
|
Loading…
Reference in a new issue