mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-19 22:49:29 +02:00
add debugging for mesh and skeleton changes for other Avatars
This commit is contained in:
parent
eccf1e0fac
commit
42c6498fe4
1 changed files with 6 additions and 0 deletions
|
@ -162,6 +162,9 @@ void Profile::processDataServerResponse(const QString& userString, const QString
|
||||||
Avatar* avatar = (Avatar *) node->getLinkedData();
|
Avatar* avatar = (Avatar *) node->getLinkedData();
|
||||||
|
|
||||||
if (avatar->getUUID() == QUuid(userString)) {
|
if (avatar->getUUID() == QUuid(userString)) {
|
||||||
|
qDebug() << "Changing mesh to" << valueList[i] << "for avatar with UUID"
|
||||||
|
<< uuidStringWithoutCurlyBraces(avatar->getUUID());
|
||||||
|
|
||||||
QMetaObject::invokeMethod(&avatar->getHead().getFaceModel(),
|
QMetaObject::invokeMethod(&avatar->getHead().getFaceModel(),
|
||||||
"setURL", Q_ARG(QUrl, QUrl(valueList[i])));
|
"setURL", Q_ARG(QUrl, QUrl(valueList[i])));
|
||||||
}
|
}
|
||||||
|
@ -179,6 +182,9 @@ void Profile::processDataServerResponse(const QString& userString, const QString
|
||||||
Avatar* avatar = (Avatar *) node->getLinkedData();
|
Avatar* avatar = (Avatar *) node->getLinkedData();
|
||||||
|
|
||||||
if (avatar->getUUID() == QUuid(userString)) {
|
if (avatar->getUUID() == QUuid(userString)) {
|
||||||
|
qDebug() << "Changing skeleton to" << valueList[i] << "for avatar with UUID"
|
||||||
|
<< uuidStringWithoutCurlyBraces(avatar->getUUID());
|
||||||
|
|
||||||
QMetaObject::invokeMethod(&avatar->getSkeletonModel(), "setURL",
|
QMetaObject::invokeMethod(&avatar->getSkeletonModel(), "setURL",
|
||||||
Q_ARG(QUrl, QUrl(valueList[i])));
|
Q_ARG(QUrl, QUrl(valueList[i])));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue