diff options
author | Dave Parks <davep@lindenlab.com> | 2022-05-16 12:26:17 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2022-05-16 12:26:17 -0500 |
commit | b2141e94465998d13ab4b5d894b0edcdad0e8216 (patch) | |
tree | cba0541baffa141e9e3e2aecd16ce8cd9457c88c /indra/llmath/llvolume.cpp | |
parent | 3400e5fd302c0d9dea6386c4d5bf38876f2cc287 (diff) | |
parent | 63095005578007345d9916ebc6855246cdb08c7c (diff) |
Merge remote-tracking branch 'remotes/origin/DRTVWR-546' into DRTVWR-559
Diffstat (limited to 'indra/llmath/llvolume.cpp')
-rw-r--r-- | indra/llmath/llvolume.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llmath/llvolume.cpp b/indra/llmath/llvolume.cpp index 3727ce85af..5099920f32 100644 --- a/indra/llmath/llvolume.cpp +++ b/indra/llmath/llvolume.cpp @@ -414,7 +414,7 @@ public: max.setMax(max, *tri->mV[2]); } } - else if (!branch->isLeaf()) + else if (branch->getChildCount() > 0) { //no data, but child nodes exist LLVolumeOctreeListener* child = (LLVolumeOctreeListener*) branch->getChild(0)->getListener(0); @@ -424,7 +424,7 @@ public: } else { - LL_ERRS() << "Empty leaf" << LL_ENDL; + llassert(!branch->isLeaf()); // Empty leaf } for (S32 i = 0; i < branch->getChildCount(); ++i) |