Checker: NULL_RETURNS
Function: LLSpatialBridge::LLSpatialBridge(LLDrawable *, int, unsigned int)
File: /indra/newview/lldrawable.cpp
meow-7.2.2
Tofu Linden 2010-02-10 18:43:13 +00:00
parent cd62780457
commit eeb4800858
1 changed files with 6 additions and 2 deletions

View File

@ -1049,9 +1049,13 @@ LLSpatialBridge::LLSpatialBridge(LLDrawable* root, BOOL render_by_group, U32 dat
llassert(mDrawable);
llassert(mDrawable->getRegion());
llassert(mDrawable->getRegion()->getSpatialPartition(mPartitionType));
LLSpatialPartition *part = mDrawable->getRegion()->getSpatialPartition(mPartitionType);
llassert(part);
mDrawable->getRegion()->getSpatialPartition(mPartitionType)->put(this);
if (part)
{
part->put(this);
}
}
LLSpatialBridge::~LLSpatialBridge()