diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2022-05-05 19:41:56 +0300 |
---|---|---|
committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2022-05-05 19:41:56 +0300 |
commit | 43517c5adc69ecb1d8a5e031a9e2840b005eecf9 (patch) | |
tree | 0bfb56fe055f700b66c73efffab741c69925e9f3 /indra/newview | |
parent | f3add82a4c7f34bfff285302c34d952902451cad (diff) |
SL-17244 Fix 'empty leaf' crashes
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llvieweroctree.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llvieweroctree.cpp b/indra/newview/llvieweroctree.cpp index 87e296012d..12624ec3a2 100644 --- a/indra/newview/llvieweroctree.cpp +++ b/indra/newview/llvieweroctree.cpp @@ -564,7 +564,7 @@ void LLViewerOctreeGroup::rebound() group->setState(SKIP_FRUSTUM_CHECK); } - else if (mOctreeNode->isLeaf()) + else if (mOctreeNode->getChildCount() == 0) { //copy object bounding box if this is a leaf boundObjects(TRUE, mExtents[0], mExtents[1]); mBounds[0] = mObjectBounds[0]; |