mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 06:44:06 +02:00
only set hasNewJointRotations true for valid rotation
This commit is contained in:
parent
ad6a219a60
commit
0be70063c5
1 changed files with 1 additions and 1 deletions
|
@ -490,11 +490,11 @@ int AvatarData::parseDataAtOffset(const QByteArray& packet, int offset) {
|
|||
for (int i = 0; i < numJoints; i++) {
|
||||
JointData& data = _jointData[i];
|
||||
if (data.valid) {
|
||||
_hasNewJointRotations = true;
|
||||
sourceBuffer += unpackOrientationQuatFromBytes(sourceBuffer, data.rotation);
|
||||
}
|
||||
}
|
||||
} // numJoints * 8 bytes
|
||||
_hasNewJointRotations = true;
|
||||
|
||||
return sourceBuffer - startPosition;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue