History

fix delete local voxels in case of last voxel server going away

ZappoMan committed 13 years ago

Commit 6d4ebda1 parent 48e35ec1 file · +1 −1Browse files

Unified · Split

interface/src/VoxelSystem.cpp+1−1
@@ -1548,7 +1548,7 @@ bool VoxelSystem::killSourceVoxelsOperation(VoxelNode* node, void* extraData) { · 1547 unmodified lines
1548 for (int i = 0; i < NUMBER_OF_CHILDREN; i++) {1548 for (int i = 0; i < NUMBER_OF_CHILDREN; i++) {
1549 VoxelNode* childNode = node->getChildAtIndex(i);1549 VoxelNode* childNode = node->getChildAtIndex(i);
1550 if (childNode) {1550 if (childNode) {
1551 uint16_t childNodeID = childNodeID = childNode->getSourceID();1551 uint16_t childNodeID = childNode->getSourceID();
1552 if (childNodeID == killedNodeID) {1552 if (childNodeID == killedNodeID) {
1553 node->safeDeepDeleteChildAtIndex(i);1553 node->safeDeepDeleteChildAtIndex(i);
1554 }1554 }