Automated merge with http://bitbucket.org/lindenlab/viewer-beta
commit
9ff687218a
|
|
@ -1405,8 +1405,9 @@ void LLViewerObjectList::removeFromActiveList(LLViewerObject* objectp)
|
|||
{
|
||||
mActiveObjects[idx] = mActiveObjects[last_index];
|
||||
mActiveObjects[idx]->setListIndex(idx);
|
||||
mActiveObjects.pop_back();
|
||||
}
|
||||
|
||||
mActiveObjects.pop_back();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1450,6 +1451,12 @@ void LLViewerObjectList::updateActive(LLViewerObject *objectp)
|
|||
objectp->setOnActiveList(FALSE);
|
||||
}
|
||||
}
|
||||
|
||||
//post condition: if object is active, it must be on the active list
|
||||
llassert(!active || std::find(mActiveObjects.begin(), mActiveObjects.end(), objectp) != mActiveObjects.end());
|
||||
|
||||
//post condition: if object is not active, it must not be on the active list
|
||||
llassert(active || std::find(mActiveObjects.begin(), mActiveObjects.end(), objectp) == mActiveObjects.end());
|
||||
}
|
||||
|
||||
void LLViewerObjectList::updateObjectCost(LLViewerObject* object)
|
||||
|
|
|
|||
|
|
@ -129,6 +129,7 @@ public:
|
|||
LLViewerObject *getSelectedObject(const U32 object_id);
|
||||
|
||||
inline S32 getNumObjects() { return (S32) mObjects.size(); }
|
||||
inline S32 getNumActiveObjects() { return (S32) mActiveObjects.size(); }
|
||||
|
||||
void addToMap(LLViewerObject *objectp);
|
||||
void removeFromMap(LLViewerObject *objectp);
|
||||
|
|
|
|||
|
|
@ -563,6 +563,9 @@ public:
|
|||
addText(xpos, ypos, llformat("%d Render Calls", gPipeline.mBatchCount));
|
||||
ypos += y_inc;
|
||||
|
||||
addText(xpos, ypos, llformat("%d/%d Objects Active", gObjectList.getNumActiveObjects(), gObjectList.getNumObjects()));
|
||||
ypos += y_inc;
|
||||
|
||||
addText(xpos, ypos, llformat("%d Matrix Ops", gPipeline.mMatrixOpCount));
|
||||
ypos += y_inc;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue