mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-08 22:47:49 +02:00
Merge pull request #6137 from sethalves/fix-kinematic-grab
Fix kinematic hold-action transmission
This commit is contained in:
commit
8f90cdf98c
1 changed files with 4 additions and 0 deletions
|
@ -245,6 +245,8 @@ QByteArray AvatarActionHold::serialize() const {
|
||||||
|
|
||||||
dataStream << _expires + getEntityServerClockSkew();
|
dataStream << _expires + getEntityServerClockSkew();
|
||||||
dataStream << _tag;
|
dataStream << _tag;
|
||||||
|
dataStream << _kinematic;
|
||||||
|
dataStream << _kinematicSetVelocity;
|
||||||
});
|
});
|
||||||
|
|
||||||
return serializedActionArguments;
|
return serializedActionArguments;
|
||||||
|
@ -278,6 +280,8 @@ void AvatarActionHold::deserialize(QByteArray serializedArguments) {
|
||||||
dataStream >> _expires;
|
dataStream >> _expires;
|
||||||
_expires -= getEntityServerClockSkew();
|
_expires -= getEntityServerClockSkew();
|
||||||
dataStream >> _tag;
|
dataStream >> _tag;
|
||||||
|
dataStream >> _kinematic;
|
||||||
|
dataStream >> _kinematicSetVelocity;
|
||||||
|
|
||||||
#if WANT_DEBUG
|
#if WANT_DEBUG
|
||||||
qDebug() << "deserialize AvatarActionHold: " << _holderID
|
qDebug() << "deserialize AvatarActionHold: " << _holderID
|
||||||
|
|
Loading…
Reference in a new issue