mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 16:23:39 +02:00
removed some old debug code and updated a comment
This commit is contained in:
parent
c7a502e2c9
commit
152d99d810
1 changed files with 4 additions and 2 deletions
|
@ -50,6 +50,10 @@ ModelTreeElement* ModelTreeElement::addChildAtIndex(int index) {
|
|||
}
|
||||
|
||||
|
||||
// TODO: This will attempt to store as many models as will fit in the packetData, if an individual model won't
|
||||
// fit, but some models did fit, then the element outputs what can fit. Once the general Octree::encodeXXX()
|
||||
// process supports partial encoding of an octree element, this will need to be updated to handle spanning its
|
||||
// contents across multiple packets.
|
||||
bool ModelTreeElement::appendElementData(OctreePacketData* packetData, EncodeBitstreamParams& params) const {
|
||||
bool success = true; // assume the best...
|
||||
|
||||
|
@ -89,7 +93,6 @@ bool ModelTreeElement::appendElementData(OctreePacketData* packetData, EncodeBit
|
|||
actualNumberOfModels++;
|
||||
}
|
||||
if (!success) {
|
||||
qDebug() << "ModelTreeElement::appendElementData()... model i=" << i << "didn't fit...";
|
||||
packetData->discardLevel(modelLevel);
|
||||
break;
|
||||
}
|
||||
|
@ -97,7 +100,6 @@ bool ModelTreeElement::appendElementData(OctreePacketData* packetData, EncodeBit
|
|||
}
|
||||
|
||||
if (!success) {
|
||||
qDebug() << "ModelTreeElement::appendElementData()... updatePriorBytes()... actualNumberOfModels=" << actualNumberOfModels;
|
||||
success = packetData->updatePriorBytes(numberOfModelsOffset,
|
||||
(const unsigned char*)&actualNumberOfModels, sizeof(actualNumberOfModels));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue