From 3b0047b072b21d240d463c874751dfbcc5b4fa60 Mon Sep 17 00:00:00 2001 From: bramas <berenger.bramas@inria.fr> Date: Mon, 24 Nov 2014 11:36:43 +0100 Subject: [PATCH] Update suboctree to remove cells correctly --- Src/Containers/FSubOctree.hpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Src/Containers/FSubOctree.hpp b/Src/Containers/FSubOctree.hpp index fecf26afe..61f166c34 100755 --- a/Src/Containers/FSubOctree.hpp +++ b/Src/Containers/FSubOctree.hpp @@ -137,11 +137,6 @@ protected: if(arrayIndex == this->leftLeafIndex && arrayIndex == this->rightLeafIndex){ this->rightLeafIndex = -1; // only one cells, return true - // remove the last cells - cellAllocator.deleteObject(this->cells[indexLevel][arrayIndex]); - this->cells[indexLevel][arrayIndex] =nullptr; - - return true; } else if(arrayIndex == this->leftLeafIndex){ while( !this->cells[indexLevel][++this->leftLeafIndex] ); -- GitLab