Several LLStat variables migrated into the LLViewerStats class.
This commit is contained in:
@@ -79,6 +79,7 @@
|
||||
#include "llviewerparceloverlay.h"
|
||||
#include "llviewerpartsource.h"
|
||||
#include "llviewerregion.h"
|
||||
#include "llviewerstats.h"
|
||||
#include "llviewertextureanim.h"
|
||||
#include "llviewerwindow.h" // For getSpinAxis
|
||||
#include "llvoavatar.h"
|
||||
@@ -1979,6 +1980,12 @@ U32 LLViewerObject::processUpdateMessage(LLMessageSystem *mesgsys,
|
||||
|
||||
avatar->clampAttachmentPositions();
|
||||
}
|
||||
|
||||
// If we're snapping the position by more than 0.5m, update LLViewerStats::mAgentPositionSnaps
|
||||
if ( isAvatar() && gAgent.getAvatarObject() == this && (mag_sqr > 0.25f) )
|
||||
{
|
||||
LLViewerStats::getInstance()->mAgentPositionSnaps.push( diff.length() );
|
||||
}
|
||||
}
|
||||
|
||||
if (new_rot != mLastRot
|
||||
|
||||
Reference in New Issue
Block a user