mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 15:43:50 +02:00
fix delete local voxels in case of last voxel server going away
This commit is contained in:
parent
48e35ec6cb
commit
6d4ebda1ff
1 changed files with 1 additions and 1 deletions
|
@ -1548,7 +1548,7 @@ bool VoxelSystem::killSourceVoxelsOperation(VoxelNode* node, void* extraData) {
|
|||
for (int i = 0; i < NUMBER_OF_CHILDREN; i++) {
|
||||
VoxelNode* childNode = node->getChildAtIndex(i);
|
||||
if (childNode) {
|
||||
uint16_t childNodeID = childNodeID = childNode->getSourceID();
|
||||
uint16_t childNodeID = childNode->getSourceID();
|
||||
if (childNodeID == killedNodeID) {
|
||||
node->safeDeepDeleteChildAtIndex(i);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue