Explained an edge case that can cause us to fail to send some entity properties

This commit is contained in:
Oren Hurvitz 2018-04-22 13:51:41 +03:00
parent 9a324379e7
commit c0052004de

View file

@ -120,6 +120,10 @@ void EntityEditPacketSender::queueEditEntityMessage(PacketType type,
encodeResult = EntityItemProperties::encodeEntityEditPacket(type, entityItemID, propertiesCopy, bufferOut, requestedProperties, didntFitProperties);
if (encodeResult == OctreeElement::NONE) {
// This can happen for two reasons:
// 1. One of the properties is too large to fit in a single packet.
// 2. The requested properties don't exist in this entity type (e.g., 'modelUrl' in a Zone Entity).
// Since case #1 is more likely (and more critical), that's the one we warn about.
qCWarning(entities).nospace() << "queueEditEntityMessage: some of the properties don't fit and can't be sent. entityID=" << uuidStringWithoutCurlyBraces(entityItemID);
}
else {