mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 19:21:16 +02:00
Fix couple of gcc issues
This commit is contained in:
parent
e1d51a6c42
commit
2da5338574
1 changed files with 2 additions and 2 deletions
|
@ -516,7 +516,8 @@ QByteArray AvatarData::toByteArray(AvatarDataDetail dataDetail, quint64 lastSent
|
||||||
|
|
||||||
if (hasAvatarLocalPosition) {
|
if (hasAvatarLocalPosition) {
|
||||||
auto startSection = destinationBuffer;
|
auto startSection = destinationBuffer;
|
||||||
AVATAR_MEMCPY(getLocalPosition());
|
const auto localPosition = getLocalPosition();
|
||||||
|
AVATAR_MEMCPY(localPosition);
|
||||||
|
|
||||||
int numBytes = destinationBuffer - startSection;
|
int numBytes = destinationBuffer - startSection;
|
||||||
if (outboundDataRateOut) {
|
if (outboundDataRateOut) {
|
||||||
|
@ -677,7 +678,6 @@ QByteArray AvatarData::toByteArray(AvatarDataDetail dataDetail, quint64 lastSent
|
||||||
if (hasGrabJoints) {
|
if (hasGrabJoints) {
|
||||||
// the far-grab joints may range further than 3 meters, so we can't use packFloatVec3ToSignedTwoByteFixed etc
|
// the far-grab joints may range further than 3 meters, so we can't use packFloatVec3ToSignedTwoByteFixed etc
|
||||||
auto startSection = destinationBuffer;
|
auto startSection = destinationBuffer;
|
||||||
auto data = reinterpret_cast<AvatarDataPacket::FarGrabJoints*>(destinationBuffer);
|
|
||||||
glm::vec3 leftFarGrabPosition = extractTranslation(leftFarGrabMatrix);
|
glm::vec3 leftFarGrabPosition = extractTranslation(leftFarGrabMatrix);
|
||||||
glm::quat leftFarGrabRotation = extractRotation(leftFarGrabMatrix);
|
glm::quat leftFarGrabRotation = extractRotation(leftFarGrabMatrix);
|
||||||
glm::vec3 rightFarGrabPosition = extractTranslation(rightFarGrabMatrix);
|
glm::vec3 rightFarGrabPosition = extractTranslation(rightFarGrabMatrix);
|
||||||
|
|
Loading…
Reference in a new issue