mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 17:03:58 +02:00
cleanups
This commit is contained in:
parent
74ced250c1
commit
f61a005ebc
2 changed files with 2 additions and 12 deletions
|
@ -320,11 +320,7 @@ QByteArray AvatarData::toByteArray(bool cullSmallChanges, bool sendAll) {
|
|||
for (int i = 0; i < _jointData.size(); i ++) {
|
||||
const JointData& data = _jointData[ i ];
|
||||
if (validity & (1 << validityBit)) {
|
||||
|
||||
// destinationBuffer += packOrientationQuatToBytes(destinationBuffer, data.rotation);
|
||||
memcpy(destinationBuffer, &data.rotation, sizeof(glm::quat));
|
||||
destinationBuffer += sizeof(glm::quat);
|
||||
|
||||
destinationBuffer += packOrientationQuatToBytes(destinationBuffer, data.rotation);
|
||||
}
|
||||
if (++validityBit == BITS_IN_BYTE) {
|
||||
validityBit = 0;
|
||||
|
@ -708,10 +704,7 @@ int AvatarData::parseDataFromBuffer(const QByteArray& buffer) {
|
|||
if (validRotations[i]) {
|
||||
_hasNewJointRotations = true;
|
||||
data.rotationSet = true;
|
||||
|
||||
// sourceBuffer += unpackOrientationQuatFromBytes(sourceBuffer, data.rotation);
|
||||
memcpy(&data.rotation, sourceBuffer, sizeof(glm::quat));
|
||||
sourceBuffer += sizeof(glm::quat);
|
||||
sourceBuffer += unpackOrientationQuatFromBytes(sourceBuffer, data.rotation);
|
||||
}
|
||||
}
|
||||
} // numJoints * 8 bytes
|
||||
|
|
|
@ -370,12 +370,9 @@ inline QDebug operator<<(QDebug debug, const EntityItemProperties& properties) {
|
|||
DEBUG_PROPERTY_IF_CHANGED(debug, properties, VoxelSurfaceStyle, voxelSurfaceStyle, "");
|
||||
DEBUG_PROPERTY_IF_CHANGED(debug, properties, Href, href, "");
|
||||
DEBUG_PROPERTY_IF_CHANGED(debug, properties, Description, description, "");
|
||||
|
||||
// DEBUG_PROPERTY_IF_CHANGED(debug, properties, ActionData, actionData, "");
|
||||
if (properties.actionDataChanged()) {
|
||||
debug << " " << "actionData" << ":" << properties.getActionData().toHex() << "" << "\n";
|
||||
}
|
||||
|
||||
DEBUG_PROPERTY_IF_CHANGED(debug, properties, XTextureURL, xTextureURL, "");
|
||||
DEBUG_PROPERTY_IF_CHANGED(debug, properties, YTextureURL, yTextureURL, "");
|
||||
DEBUG_PROPERTY_IF_CHANGED(debug, properties, ZTextureURL, zTextureURL, "");
|
||||
|
|
Loading…
Reference in a new issue