Showing the changes to interface/src/VoxelSystem.cpp (1 of 6 files). Show all
Unified · Split
| @@ -599,8 +599,10 @@ int VoxelSystem::parseData(unsigned char* sourceBuffer, int numBytes) { · 598 unmodified lines | ||
| 599 | 599 | lockTree(); |
| 600 | 600 | VoxelPacket packet(VOXEL_PACKET_COMPRESSION_DEFAULT); |
| 601 | 601 | int compressedSize = numBytes - numBytesPacketHeader; |
| 602 | − packet.loadCompressedContent(voxelData, compressedSize); | |
| 603 | −printf("got packet numBytes=%d compressed size %d uncompressed size %d\n",numBytes, compressedSize, packet.getUncompressedSize()); | |
| 602 | + packet.loadFinalizedContent(voxelData, compressedSize); | |
| 603 | + if (Menu::getInstance()->isOptionChecked(MenuOption::ExtraDebugging)) { | |
| 604 | + qDebug("got packet numBytes=%d finalized size %d uncompressed size %d\n",numBytes, compressedSize, packet.getUncompressedSize()); | |
| 605 | + } | |
| 604 | 606 | _tree->readBitstreamToTree(packet.getUncompressedData(), packet.getUncompressedSize(), args); |
| 605 | 607 | unlockTree(); |
| 606 | 608 | } |
| @@ -613,8 +615,10 @@ printf("got packet numBytes=%d compressed size %d uncompressed size %d\n",numByt · 6 unmodified lines | ||
| 613 | 615 | lockTree(); |
| 614 | 616 | VoxelPacket packet(VOXEL_PACKET_COMPRESSION_DEFAULT); |
| 615 | 617 | int compressedSize = numBytes - numBytesPacketHeader; |
| 616 | − packet.loadCompressedContent(voxelData, compressedSize); | |
| 617 | −printf("got packet numBytes=%d compressed size %d uncompressed size %d\n",numBytes, compressedSize, packet.getUncompressedSize()); | |
| 618 | + packet.loadFinalizedContent(voxelData, compressedSize); | |
| 619 | + if (Menu::getInstance()->isOptionChecked(MenuOption::ExtraDebugging)) { | |
| 620 | + qDebug("got packet numBytes=%d finalized size %d uncompressed size %d\n",numBytes, compressedSize, packet.getUncompressedSize()); | |
| 621 | + } | |
| 618 | 622 | _tree->readBitstreamToTree(packet.getUncompressedData(), packet.getUncompressedSize(), args); |
| 619 | 623 | unlockTree(); |
| 620 | 624 | } |