mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 18:35:04 +02:00
avoid extra sends to localPosition
This commit is contained in:
parent
bc5f563f57
commit
107442eea0
1 changed files with 3 additions and 1 deletions
|
@ -259,7 +259,9 @@ QByteArray AvatarData::toByteArray(AvatarDataDetail dataDetail, quint64 lastSent
|
|||
// and the parent info can change independently though, so we track their "changed since"
|
||||
// separately
|
||||
bool hasParentInfo = sendAll || parentInfoChangedSince(lastSentTime);
|
||||
bool hasAvatarLocalPosition = sendAll || tranlationChangedSince(lastSentTime);
|
||||
bool hasAvatarLocalPosition = sendAll ||
|
||||
(hasParent() && tranlationChangedSince(lastSentTime)) ||
|
||||
parentInfoChangedSince(lastSentTime);
|
||||
|
||||
bool hasFaceTrackerInfo = hasFaceTracker() && (sendAll || faceTrackerInfoChangedSince(lastSentTime));
|
||||
bool hasJointData = sendAll || !sendMinimum;
|
||||
|
|
Loading…
Reference in a new issue