diff --git a/src/meshTools/indexedOctree/treeDataPrimitivePatch.C b/src/meshTools/indexedOctree/treeDataPrimitivePatch.C index f1c969762b..b4fcf6b974 100644 --- a/src/meshTools/indexedOctree/treeDataPrimitivePatch.C +++ b/src/meshTools/indexedOctree/treeDataPrimitivePatch.C @@ -532,7 +532,7 @@ bool Foam::treeDataPrimitivePatch::findAllIntersectOp::operator() point& intersectionPoint ) const { - if (!shapeMask_.empty() && findIndex(shapeMask_, index) != -1) + if (findIndex(shapeMask_, index) != -1) { return false; }