diff options
| author | Richard Linden <none@none> | 2013-03-18 23:39:44 -0700 |
|---|---|---|
| committer | Richard Linden <none@none> | 2013-03-18 23:39:44 -0700 |
| commit | c01c798e73ab7dd05db4ed0fa831b44928945996 (patch) | |
| tree | 5645bc381bcec8ef259a644da327be89baea25b0 /indra/newview/llagent.cpp | |
| parent | 452d3350a241695d962dc58403ce4e35541b6353 (diff) | |
| parent | f59bd5f89ffd2dadbd3d7514cfa8e8cc97172201 (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() //----------------------------------------------------------------------------- |
