mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-12 15:23:14 +02:00
Argh, forgot to return the result of the superclass implementation.
This commit is contained in:
parent
a66fd2f466
commit
2eaaee673f
1 changed files with 2 additions and 1 deletions
|
@ -801,9 +801,10 @@ void Avatar::getBodyBallTransform(AvatarJointID jointID, glm::vec3& position, gl
|
|||
int Avatar::parseData(unsigned char* sourceBuffer, int numBytes) {
|
||||
// change in position implies movement
|
||||
glm::vec3 oldPosition = _position;
|
||||
AvatarData::parseData(sourceBuffer, numBytes);
|
||||
int bytesRead = AvatarData::parseData(sourceBuffer, numBytes);
|
||||
const float MOVE_DISTANCE_THRESHOLD = 0.001f;
|
||||
_moving = glm::distance(oldPosition, _position) > MOVE_DISTANCE_THRESHOLD;
|
||||
return bytesRead;
|
||||
}
|
||||
|
||||
void Avatar::saveData(QSettings* set) {
|
||||
|
|
Loading…
Reference in a new issue