trying to fix skeleton switching bug

This commit is contained in:
SamGondelman 2016-06-13 16:37:34 -07:00
parent fc1a154a6a
commit dc9121433d
2 changed files with 5 additions and 2 deletions

View file

@ -90,11 +90,11 @@ int main(int argc, const char* argv[]) {
qDebug() << "Interface instance appears to be running, exiting"; qDebug() << "Interface instance appears to be running, exiting";
return EXIT_SUCCESS; //return EXIT_SUCCESS;
} }
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
return EXIT_SUCCESS; //return EXIT_SUCCESS;
#endif #endif
} }

View file

@ -1052,6 +1052,8 @@ void AvatarData::setJointMappingsFromNetworkReply() {
_jointIndices.insert(_jointNames.at(i), i + 1); _jointIndices.insert(_jointNames.at(i), i + 1);
} }
sendIdentityPacket();
networkReply->deleteLater(); networkReply->deleteLater();
} }
@ -1094,6 +1096,7 @@ void AvatarData::sendIdentityPacket() {
void AvatarData::updateJointMappings() { void AvatarData::updateJointMappings() {
_jointIndices.clear(); _jointIndices.clear();
_jointNames.clear(); _jointNames.clear();
_jointData.clear();
if (_skeletonModelURL.fileName().toLower().endsWith(".fst")) { if (_skeletonModelURL.fileName().toLower().endsWith(".fst")) {
QNetworkAccessManager& networkAccessManager = NetworkAccessManager::getInstance(); QNetworkAccessManager& networkAccessManager = NetworkAccessManager::getInstance();