Fix for face model sending.

This commit is contained in:
Andrzej Kapolka 2013-09-20 13:28:50 -07:00
parent 4f3909b682
commit df0b2f4eec
2 changed files with 3 additions and 1 deletions

View file

@ -76,7 +76,7 @@ void Avatar::sendAvatarURLsMessage(const QUrl& voxelURL, const QUrl& faceURL) {
message.append(packetHeader, numBytesPacketHeader);
message.append((const char*)&ownerID, sizeof(ownerID));
QDataStream out(&message, QIODevice::WriteOnly);
QDataStream out(&message, QIODevice::WriteOnly | QIODevice::Append);
out << voxelURL;
out << faceURL;

View file

@ -20,6 +20,8 @@ BlendFace::BlendFace(Head* owningHead) :
_modelReply(NULL),
_iboID(0)
{
// we may have been created in the network thread, but we live in the main thread
moveToThread(Application::getInstance()->thread());
}
BlendFace::~BlendFace() {