avoid extra sends to localPosition

This commit is contained in:
Seth Alves 2017-02-12 11:56:38 -08:00
parent bc5f563f57
commit 107442eea0

View file

@ -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;