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/llvovolume.cpp | |
parent | f1128da8da714b9d036fe1dbc66cf46ccf7747a5 (diff) |
SL-17801: Don't let external code delete the raw pointer to the picking octree
Diffstat (limited to 'indra/newview/llvovolume.cpp')
-rw-r--r-- | indra/newview/llvovolume.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp index c4b51c474d..8bf9d12b33 100644 --- a/indra/newview/llvovolume.cpp +++ b/indra/newview/llvovolume.cpp @@ -4976,9 +4976,7 @@ void LLRiggedVolume::update(const LLMeshSkinInfo* skin, LLVOAvatar* avatar, cons if (rebuild_face_octrees) { - delete dst_face.mOctree; - dst_face.mOctree = NULL; - + dst_face.destroyOctree(); dst_face.createOctree(); } } |