History

Code review fixes.

Andrzej Kapolka committed 13 years ago

Commit e8885331 parent 665551d2 files · +8 −9Browse files

Showing the changes to interface/src/DataServerClient.cpp (1 of 2 files). Show all

Unified · Split

interface/src/DataServerClient.cpp+7−7
@@ -131,8 +131,8 @@ void DataServerClient::processSendFromDataServer(unsigned char* packetData, int · 130 unmodified lines
131131 if (keyList[i] == DataServerKey::FaceMeshURL) {
132132
133133 if (userUUID.isNull() || userUUID == Application::getInstance()->getProfile()->getUUID()) {
134− qDebug("Changing user's face model URL to %s\n", valueList[0].toLocal8Bit().constData());
135− Application::getInstance()->getProfile()->setFaceModelURL(QUrl(valueList[0]));
134+ qDebug("Changing user's face model URL to %s\n", valueList[i].toLocal8Bit().constData());
135+ Application::getInstance()->getProfile()->setFaceModelURL(QUrl(valueList[i]));
136136 } else {
137137 // mesh URL for a UUID, find avatar in our list
138138 NodeList* nodeList = NodeList::getInstance();
@@ -142,7 +142,7 @@ void DataServerClient::processSendFromDataServer(unsigned char* packetData, int · 3 unmodified lines
142142
143143 if (avatar->getUUID() == userUUID) {
144144 QMetaObject::invokeMethod(&avatar->getHead().getFaceModel(),
145− "setURL", Q_ARG(QUrl, QUrl(valueList[0])));
145+ "setURL", Q_ARG(QUrl, QUrl(valueList[i])));
146146 }
147147 }
148148 }
@@ -150,8 +150,8 @@ void DataServerClient::processSendFromDataServer(unsigned char* packetData, int · 1 unmodified line
150150 } else if (keyList[i] == DataServerKey::SkeletonURL) {
151151
152152 if (userUUID.isNull() || userUUID == Application::getInstance()->getProfile()->getUUID()) {
153− qDebug("Changing user's skeleton URL to %s\n", valueList[0].toLocal8Bit().constData());
154− Application::getInstance()->getProfile()->setSkeletonModelURL(QUrl(valueList[0]));
153+ qDebug("Changing user's skeleton URL to %s\n", valueList[i].toLocal8Bit().constData());
154+ Application::getInstance()->getProfile()->setSkeletonModelURL(QUrl(valueList[i]));
155155 } else {
156156 // skeleton URL for a UUID, find avatar in our list
157157 NodeList* nodeList = NodeList::getInstance();
@@ -161,7 +161,7 @@ void DataServerClient::processSendFromDataServer(unsigned char* packetData, int · 3 unmodified lines
161161
162162 if (avatar->getUUID() == userUUID) {
163163 QMetaObject::invokeMethod(&avatar->getSkeletonModel(), "setURL",
164− Q_ARG(QUrl, QUrl(valueList[0])));
164+ Q_ARG(QUrl, QUrl(valueList[i])));
165165 }
166166 }
167167 }
@@ -187,7 +187,7 @@ void DataServerClient::processSendFromDataServer(unsigned char* packetData, int · 19 unmodified lines
187187
188188 } else if (keyList[i] == DataServerKey::UUID) {
189189 // this is the user's UUID - set it on the profile
190− Application::getInstance()->getProfile()->setUUID(valueList[0]);
190+ Application::getInstance()->getProfile()->setUUID(valueList[i]);
191191 }
192192 }
193193 }