FIRE-19720: Crash when teleporting on Littlefield grid - LLVOSurfacePatch::dirtyGeom()

master
Ansariel 2017-12-19 11:54:25 +01:00
parent 8123e5d2be
commit 9ef7a9b46c
1 changed files with 16 additions and 4 deletions

View File

@ -1004,14 +1004,26 @@ void LLSurfacePatch::updateVisibility()
if (mVObjp)
{
mVObjp->dirtyGeom();
if (getNeighborPatch(WEST))
// <FS:Ansariel> FIRE-19720: Crash when teleporting on Littlefield grid - LLVOSurfacePatch::dirtyGeom()
//if (getNeighborPatch(WEST))
//{
// getNeighborPatch(WEST)->mVObjp->dirtyGeom();
//}
//if (getNeighborPatch(SOUTH))
//{
// getNeighborPatch(SOUTH)->mVObjp->dirtyGeom();
//}
LLSurfacePatch* neighbor = getNeighborPatch(WEST);
if (neighbor && neighbor->mVObjp.notNull())
{
getNeighborPatch(WEST)->mVObjp->dirtyGeom();
neighbor->mVObjp->dirtyGeom();
}
if (getNeighborPatch(SOUTH))
neighbor = getNeighborPatch(SOUTH);
if (neighbor && neighbor->mVObjp.notNull())
{
getNeighborPatch(SOUTH)->mVObjp->dirtyGeom();
neighbor->mVObjp->dirtyGeom();
}
// </FS:Ansariel>
}
}
mVisInfo.mbIsVisible = TRUE;