mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 22:28:37 +02:00
fix warnings
This commit is contained in:
parent
d233430809
commit
42d916a719
4 changed files with 7 additions and 7 deletions
|
@ -227,7 +227,7 @@ void MyAvatar::simulateAttachments(float deltaTime) {
|
||||||
// don't update attachments here, do it in harvestResultsFromPhysicsSimulation()
|
// don't update attachments here, do it in harvestResultsFromPhysicsSimulation()
|
||||||
}
|
}
|
||||||
|
|
||||||
QByteArray MyAvatar::toByteArray(AvatarDataDetail dataDetail) {
|
QByteArray MyAvatar::toByteArrayStateful(AvatarDataDetail dataDetail) {
|
||||||
CameraMode mode = qApp->getCamera()->getMode();
|
CameraMode mode = qApp->getCamera()->getMode();
|
||||||
_globalPosition = getPosition();
|
_globalPosition = getPosition();
|
||||||
_globalBoundingBoxDimensions.x = _characterController.getCapsuleRadius();
|
_globalBoundingBoxDimensions.x = _characterController.getCapsuleRadius();
|
||||||
|
@ -238,12 +238,12 @@ QByteArray MyAvatar::toByteArray(AvatarDataDetail dataDetail) {
|
||||||
// fake the avatar position that is sent up to the AvatarMixer
|
// fake the avatar position that is sent up to the AvatarMixer
|
||||||
glm::vec3 oldPosition = getPosition();
|
glm::vec3 oldPosition = getPosition();
|
||||||
setPosition(getSkeletonPosition());
|
setPosition(getSkeletonPosition());
|
||||||
QByteArray array = AvatarData::toByteArray(dataDetail);
|
QByteArray array = AvatarData::toByteArrayStateful(dataDetail);
|
||||||
// copy the correct position back
|
// copy the correct position back
|
||||||
setPosition(oldPosition);
|
setPosition(oldPosition);
|
||||||
return array;
|
return array;
|
||||||
}
|
}
|
||||||
return AvatarData::toByteArray(dataDetail);
|
return AvatarData::toByteArrayStateful(dataDetail);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MyAvatar::centerBody() {
|
void MyAvatar::centerBody() {
|
||||||
|
|
|
@ -338,7 +338,7 @@ private:
|
||||||
glm::quat getWorldBodyOrientation() const;
|
glm::quat getWorldBodyOrientation() const;
|
||||||
|
|
||||||
|
|
||||||
virtual QByteArray toByteArray(AvatarDataDetail dataDetail) override;
|
virtual QByteArray toByteArrayStateful(AvatarDataDetail dataDetail) override;
|
||||||
|
|
||||||
void simulate(float deltaTime);
|
void simulate(float deltaTime);
|
||||||
void updateFromTrackers(float deltaTime);
|
void updateFromTrackers(float deltaTime);
|
||||||
|
|
|
@ -169,7 +169,7 @@ float AvatarData::getDistanceBasedMinTranslationDistance(glm::vec3 viewerPositio
|
||||||
|
|
||||||
|
|
||||||
// we want to track outbound data in this case...
|
// we want to track outbound data in this case...
|
||||||
QByteArray AvatarData::toByteArray(AvatarDataDetail dataDetail) {
|
QByteArray AvatarData::toByteArrayStateful(AvatarDataDetail dataDetail) {
|
||||||
AvatarDataPacket::HasFlags hasFlagsOut;
|
AvatarDataPacket::HasFlags hasFlagsOut;
|
||||||
auto lastSentTime = _lastToByteArray;
|
auto lastSentTime = _lastToByteArray;
|
||||||
_lastToByteArray = usecTimestampNow();
|
_lastToByteArray = usecTimestampNow();
|
||||||
|
@ -1637,7 +1637,7 @@ void AvatarData::sendAvatarDataPacket() {
|
||||||
|
|
||||||
bool cullSmallData = (randFloat() < AVATAR_SEND_FULL_UPDATE_RATIO);
|
bool cullSmallData = (randFloat() < AVATAR_SEND_FULL_UPDATE_RATIO);
|
||||||
auto dataDetail = cullSmallData ? SendAllData : CullSmallData;
|
auto dataDetail = cullSmallData ? SendAllData : CullSmallData;
|
||||||
QByteArray avatarByteArray = toByteArray(dataDetail);
|
QByteArray avatarByteArray = toByteArrayStateful(dataDetail);
|
||||||
doneEncoding(cullSmallData);
|
doneEncoding(cullSmallData);
|
||||||
|
|
||||||
static AvatarDataSequenceNumber sequenceNumber = 0;
|
static AvatarDataSequenceNumber sequenceNumber = 0;
|
||||||
|
|
|
@ -368,7 +368,7 @@ public:
|
||||||
SendAllData
|
SendAllData
|
||||||
} AvatarDataDetail;
|
} AvatarDataDetail;
|
||||||
|
|
||||||
virtual QByteArray toByteArray(AvatarDataDetail dataDetail);
|
virtual QByteArray toByteArrayStateful(AvatarDataDetail dataDetail);
|
||||||
|
|
||||||
// FIXME
|
// FIXME
|
||||||
virtual QByteArray toByteArray(AvatarDataDetail dataDetail, quint64 lastSentTime, const QVector<JointData>& lastSentJointData,
|
virtual QByteArray toByteArray(AvatarDataDetail dataDetail, quint64 lastSentTime, const QVector<JointData>& lastSentJointData,
|
||||||
|
|
Loading…
Reference in a new issue