mirror of
https://github.com/overte-org/overte.git
synced 2025-08-19 04:16:47 +02:00
ask the data-server for a face mesh on UUID change
This commit is contained in:
parent
15ddd9989b
commit
10f29dfe90
1 changed files with 7 additions and 1 deletions
|
@ -18,6 +18,7 @@
|
|||
|
||||
#include "Application.h"
|
||||
#include "Avatar.h"
|
||||
#include "DataServerClient.h"
|
||||
#include "Hand.h"
|
||||
#include "Head.h"
|
||||
#include "Physics.h"
|
||||
|
@ -426,7 +427,12 @@ void Avatar::setMouseRay(const glm::vec3 &origin, const glm::vec3 &direction) {
|
|||
}
|
||||
|
||||
void Avatar::setUUID(const QUuid& uuid) {
|
||||
qDebug() << "Setting UUID for avatar!\n";
|
||||
if (uuid != _uuid) {
|
||||
// UUID has changed
|
||||
// ask for the face mesh URL for this avatar, request won't be made if UUID is null
|
||||
DataServerClient::getValueForKeyAndUUID(DataServerKey::FaceMeshURL, _uuid);
|
||||
}
|
||||
|
||||
_uuid = uuid;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue