ask the data-server for a face mesh on UUID change

This commit is contained in:
Stephen Birarda 2013-10-08 14:02:57 -07:00
parent 15ddd9989b
commit 10f29dfe90

View file

@ -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;
}