mirror of
https://github.com/lubosz/overte.git
synced 2025-04-08 12:02:25 +02:00
Merge pull request #14724 from sethalves/fix-excessive-cauterization-update
case 15942: fix bug that caused avatar cauterization code to run constantly
This commit is contained in:
commit
d64858b1c7
3 changed files with 4 additions and 3 deletions
|
@ -465,8 +465,6 @@ public:
|
|||
|
||||
static const QUrl& defaultFullAvatarModelUrl();
|
||||
|
||||
virtual bool isMyAvatar() const { return false; }
|
||||
|
||||
const QUuid getSessionUUID() const { return getID(); }
|
||||
|
||||
glm::vec3 getHandPosition() const;
|
||||
|
|
|
@ -108,7 +108,8 @@ SpatiallyNestablePointer SpatiallyNestable::getParentPointer(bool& success) cons
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
if (parent && parent->getID() == parentID) {
|
||||
if (parent && (parent->getID() == parentID ||
|
||||
(parentID == AVATAR_SELF_ID && parent->isMyAvatar()))) {
|
||||
// parent pointer is up-to-date
|
||||
if (!_parentKnowsMe) {
|
||||
SpatialParentTree* parentTree = parent->getParentTree();
|
||||
|
|
|
@ -47,6 +47,8 @@ public:
|
|||
virtual const QUuid getParentID() const;
|
||||
virtual void setParentID(const QUuid& parentID);
|
||||
|
||||
virtual bool isMyAvatar() const { return false; }
|
||||
|
||||
virtual quint16 getParentJointIndex() const { return _parentJointIndex; }
|
||||
virtual void setParentJointIndex(quint16 parentJointIndex);
|
||||
|
||||
|
|
Loading…
Reference in a new issue