X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2FMoof%2FOctree.cc;h=bd1b410a6faa17cbc837df55527646b54c5232fb;hb=1dd005530930657fd6216edc1dfcfa4c270a81c9;hp=300dbcdea7a9f2537d0499667374f22d777c2cb3;hpb=3cba2347188d70f5ee6e401774b8f86acfd1a3b9;p=chaz%2Fyoink diff --git a/src/Moof/Octree.cc b/src/Moof/Octree.cc index 300dbcd..bd1b410 100644 --- a/src/Moof/Octree.cc +++ b/src/Moof/Octree.cc @@ -66,6 +66,9 @@ OctreeNodeP Octree::insert(EntityP entity, OctreeNodeP node) entity->getAabb().max[2] < node->getAabb().max[2] && entity->getAabb().min[2] > node->getAabb().min[2])) { + // TODO this check is only needed for the root node, if we're inside the + // volume of the root node, we'll be fully inside the child as + // determined by trying to insert the parent node goto done; }