diff options
| author | Richard Linden <none@none> | 2013-03-18 20:23:23 -0700 |
|---|---|---|
| committer | Richard Linden <none@none> | 2013-03-18 20:23:23 -0700 |
| commit | 059d1a75b2d26752e7753346dc0b8cc521453783 (patch) | |
| tree | ac640b7a133e2ca419897a9021106b21db004936 /indra/newview/llagent.cpp | |
| parent | df6dfc4d1d3f9efc0035b3596dfbd9ea251328b6 (diff) | |
| parent | 47c608becb629e368a1b227ab30299df7155effd (diff) | |
Automated merge with ssh://hg.lindenlab.com/richard/viewer-interesting-metrics
Diffstat (limited to 'indra/newview/llagent.cpp')
| -rwxr-xr-x | indra/newview/llagent.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp index 4fb298df13..4e60127ef3 100755 --- a/indra/newview/llagent.cpp +++ b/indra/newview/llagent.cpp @@ -1046,6 +1046,14 @@ const LLVector3d &LLAgent::getPositionGlobal() const return mPositionGlobal; } +bool LLAgent::isPositionChanged() const +{ + LLVector3d diff; + diff = mPositionGlobal - mLastPositionGlobal; + + return diff.lengthSquared() > 1.0; +} + //----------------------------------------------------------------------------- // getPositionAgent() //----------------------------------------------------------------------------- |
