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 | |
| parent | f1128da8da714b9d036fe1dbc66cf46ccf7747a5 (diff) | |
SL-17801: Don't let external code delete the raw pointer to the picking octree
Diffstat (limited to 'indra/newview')
| -rw-r--r-- | indra/newview/llspatialpartition.cpp | 4 | ||||
| -rw-r--r-- | indra/newview/llvovolume.cpp | 4 | 
2 files changed, 3 insertions, 5 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();		 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();  			}  		} | 
