SL-14119 Crash at LLVolumeFace::cacheOptimize
parent
b12a9b89eb
commit
e5cbf1607a
|
|
@ -247,7 +247,7 @@ public:
|
|||
LLInventoryCategory(const LLInventoryCategory* other);
|
||||
void copyCategory(const LLInventoryCategory* other); // LLRefCount requires custom copy
|
||||
protected:
|
||||
~LLInventoryCategory();
|
||||
virtual ~LLInventoryCategory();
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
// Accessors And Mutators
|
||||
|
|
|
|||
|
|
@ -5294,9 +5294,9 @@ public:
|
|||
LLVCacheTriangleData* tri = *iter;
|
||||
if (tri->mActive)
|
||||
{
|
||||
tri->mScore = tri->mVertex[0]->mScore;
|
||||
tri->mScore += tri->mVertex[1]->mScore;
|
||||
tri->mScore += tri->mVertex[2]->mScore;
|
||||
tri->mScore = tri->mVertex[0] ? tri->mVertex[0]->mScore : 0;
|
||||
tri->mScore += tri->mVertex[1] ? tri->mVertex[1]->mScore : 0;
|
||||
tri->mScore += tri->mVertex[2] ? tri->mVertex[2]->mScore : 0;
|
||||
|
||||
if (!mBestTriangle || mBestTriangle->mScore < tri->mScore)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue