don't send avatar localPosition unless the avatar has a parent, even if sendAll is true

This commit is contained in:
Seth Alves 2017-02-13 13:36:07 -08:00
parent b333126cbe
commit 5ee484a592

View file

@ -259,9 +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 ||
(hasParent() && (tranlationChangedSince(lastSentTime) ||
parentInfoChangedSince(lastSentTime)));
bool hasAvatarLocalPosition = hasParent() && (sendAll ||
tranlationChangedSince(lastSentTime) ||
parentInfoChangedSince(lastSentTime));
bool hasFaceTrackerInfo = hasFaceTracker() && (sendAll || faceTrackerInfoChangedSince(lastSentTime));
bool hasJointData = sendAll || !sendMinimum;