mirror of
https://github.com/lubosz/overte.git
synced 2025-08-16 21:45:39 +02:00
code review feedback
This commit is contained in:
parent
cd4d9255bd
commit
52f1803ea8
1 changed files with 5 additions and 1 deletions
|
@ -81,7 +81,11 @@ size_t AvatarDataPacket::maxJointDataSize(size_t numJoints) {
|
||||||
size_t AvatarDataPacket::maxJointDefaultPoseFlagsSize(size_t numJoints) {
|
size_t AvatarDataPacket::maxJointDefaultPoseFlagsSize(size_t numJoints) {
|
||||||
const size_t bitVectorSize = calcBitVectorSize((int)numJoints);
|
const size_t bitVectorSize = calcBitVectorSize((int)numJoints);
|
||||||
size_t totalSize = sizeof(uint8_t); // numJoints
|
size_t totalSize = sizeof(uint8_t); // numJoints
|
||||||
totalSize += 2 * bitVectorSize;
|
|
||||||
|
// one set of bits for rotation and one for translation
|
||||||
|
const size_t NUM_BIT_VECTORS_IN_DEFAULT_POSE_FLAGS_SECTION = 2;
|
||||||
|
totalSize += NUM_BIT_VECTORS_IN_DEFAULT_POSE_FLAGS_SECTION * bitVectorSize;
|
||||||
|
|
||||||
return totalSize;
|
return totalSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue