EXT-7455 PARTIAL viewer crash in LLSurface::getWaterHeight
Somewhere between a band-aid and a real fix. Entirely speculative since there is no repro.master
parent
4339600d43
commit
2acfe2547a
|
|
@ -158,6 +158,7 @@ void LLSurface::initClasses()
|
|||
void LLSurface::setRegion(LLViewerRegion *regionp)
|
||||
{
|
||||
mRegionp = regionp;
|
||||
mWaterObjp = NULL; // depends on regionp, needs recreating
|
||||
}
|
||||
|
||||
// Assumes that arguments are powers of 2, and that
|
||||
|
|
@ -958,6 +959,7 @@ LLSurfacePatch *LLSurface::resolvePatchRegion(const LLVector3 &pos_region) const
|
|||
|
||||
LLSurfacePatch *LLSurface::resolvePatchGlobal(const LLVector3d &pos_global) const
|
||||
{
|
||||
llassert(mRegionp);
|
||||
LLVector3 pos_region = mRegionp->getPosRegionFromGlobal(pos_global);
|
||||
return resolvePatchRegion(pos_region);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue