mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 17:01:18 +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();
|
static const QUrl& defaultFullAvatarModelUrl();
|
||||||
|
|
||||||
virtual bool isMyAvatar() const { return false; }
|
|
||||||
|
|
||||||
const QUuid getSessionUUID() const { return getID(); }
|
const QUuid getSessionUUID() const { return getID(); }
|
||||||
|
|
||||||
glm::vec3 getHandPosition() const;
|
glm::vec3 getHandPosition() const;
|
||||||
|
|
|
@ -108,7 +108,8 @@ SpatiallyNestablePointer SpatiallyNestable::getParentPointer(bool& success) cons
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (parent && parent->getID() == parentID) {
|
if (parent && (parent->getID() == parentID ||
|
||||||
|
(parentID == AVATAR_SELF_ID && parent->isMyAvatar()))) {
|
||||||
// parent pointer is up-to-date
|
// parent pointer is up-to-date
|
||||||
if (!_parentKnowsMe) {
|
if (!_parentKnowsMe) {
|
||||||
SpatialParentTree* parentTree = parent->getParentTree();
|
SpatialParentTree* parentTree = parent->getParentTree();
|
||||||
|
|
|
@ -47,6 +47,8 @@ public:
|
||||||
virtual const QUuid getParentID() const;
|
virtual const QUuid getParentID() const;
|
||||||
virtual void setParentID(const QUuid& parentID);
|
virtual void setParentID(const QUuid& parentID);
|
||||||
|
|
||||||
|
virtual bool isMyAvatar() const { return false; }
|
||||||
|
|
||||||
virtual quint16 getParentJointIndex() const { return _parentJointIndex; }
|
virtual quint16 getParentJointIndex() const { return _parentJointIndex; }
|
||||||
virtual void setParentJointIndex(quint16 parentJointIndex);
|
virtual void setParentJointIndex(quint16 parentJointIndex);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue