Added a warning if we can't send some of an entity's properties to the entity server.

This can happen if a property is too large to be sent in a single UDP packet. This commit doesn't fix the underlying problem, but it makes it possible to see that the problem happened.

See: Large 'userData' can't be sent to the entity server
https://github.com/highfidelity/hifi/issues/12794
This commit is contained in:
Oren Hurvitz 2018-04-16 14:59:53 +03:00
parent 7f285c5f90
commit 9a324379e7

View file

@ -119,7 +119,10 @@ void EntityEditPacketSender::queueEditEntityMessage(PacketType type,
while (encodeResult == OctreeElement::PARTIAL) {
encodeResult = EntityItemProperties::encodeEntityEditPacket(type, entityItemID, propertiesCopy, bufferOut, requestedProperties, didntFitProperties);
if (encodeResult != OctreeElement::NONE) {
if (encodeResult == OctreeElement::NONE) {
qCWarning(entities).nospace() << "queueEditEntityMessage: some of the properties don't fit and can't be sent. entityID=" << uuidStringWithoutCurlyBraces(entityItemID);
}
else {
#ifdef WANT_DEBUG
qCDebug(entities) << "calling queueOctreeEditMessage()...";
qCDebug(entities) << " id:" << entityItemID;