diff options
| author | Cosmic Linden <cosmic@lindenlab.com> | 2022-07-26 10:36:58 -0700 |
|---|---|---|
| committer | Cosmic Linden <cosmic@lindenlab.com> | 2022-07-26 10:40:19 -0700 |
| commit | cdff7169083f054818bd54f43d602dc229a067c4 (patch) | |
| tree | 81ca83db05b6d1b237791823fdac6588b54fb940 /indra/newview/llspatialpartition.cpp | |
| parent | f1128da8da714b9d036fe1dbc66cf46ccf7747a5 (diff) | |
SL-17801: Don't let external code delete the raw pointer to the picking octree
Diffstat (limited to 'indra/newview/llspatialpartition.cpp')
| -rw-r--r-- | indra/newview/llspatialpartition.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llspatialpartition.cpp b/indra/newview/llspatialpartition.cpp index 9cfbe99df4..42cd1133a2 100644 --- a/indra/newview/llspatialpartition.cpp +++ b/indra/newview/llspatialpartition.cpp @@ -3223,14 +3223,14 @@ void renderRaycast(LLDrawable* drawablep) { F32 t = 1.f; - if (!face.mOctree) + if (!face.getOctree()) { ((LLVolumeFace*) &face)->createOctree(); } LLRenderOctreeRaycast render(start, dir, &t); - render.traverse(face.mOctree); + render.traverse(face.getOctree()); } gGL.popMatrix(); |
