mirror of
https://github.com/JulianGro/overte.git
synced 2025-08-24 11:16:30 +02:00
fix ScriptAvatar promotion of AvatarData
This commit is contained in:
parent
b8620f6919
commit
db6fc40277
3 changed files with 2 additions and 4 deletions
|
@ -44,7 +44,7 @@ public:
|
|||
std::shared_ptr<MyAvatar> getMyAvatar() { return _myAvatar; }
|
||||
|
||||
// Null/Default-constructed QUuids will return MyAvatar
|
||||
Q_INVOKABLE virtual ScriptAvatar* getAvatar(QUuid avatarID) override { return new ScriptAvatar(getAvatarBySessionID(avatarID)); }
|
||||
Q_INVOKABLE virtual ScriptAvatarData* getAvatar(QUuid avatarID) override { return new ScriptAvatar(getAvatarBySessionID(avatarID)); }
|
||||
|
||||
AvatarSharedPointer getAvatarBySessionID(const QUuid& sessionID) const override;
|
||||
|
||||
|
|
|
@ -51,8 +51,6 @@ public slots:
|
|||
|
||||
private:
|
||||
std::shared_ptr<Avatar> lockAvatar() const;
|
||||
|
||||
std::weak_ptr<AvatarData> _avatarData;
|
||||
};
|
||||
|
||||
#endif // hifi_ScriptAvatar_h
|
||||
|
|
|
@ -131,7 +131,7 @@ public slots:
|
|||
glm::quat getAbsoluteJointRotationInObjectFrame(int index) const;
|
||||
glm::vec3 getAbsoluteJointTranslationInObjectFrame(int index) const;
|
||||
|
||||
private:
|
||||
protected:
|
||||
std::weak_ptr<AvatarData> _avatarData;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue