diff options
| author | Richard Linden <none@none> | 2013-01-22 20:46:02 -0800 |
|---|---|---|
| committer | Richard Linden <none@none> | 2013-01-22 20:46:02 -0800 |
| commit | d93fe6c4353a6501af2704408d2921181fea6b75 (patch) | |
| tree | 03c380bcad8944130c874665619e918237a2208c /indra/newview/llagent.cpp | |
| parent | 28ab53d0cd1fb43a255990e90e0ad1ee78a566bb (diff) | |
| parent | a4d01f05e054eb0f7cbe2621548429cea70ffe26 (diff) | |
Automated merge with bundle:c:\code\viewer-interesting+c:\users\richard\appdata\local\temp\thg.hcdaac\ssh__hg.lindenlab.com_richard_viewer-interesting-metrics_sa6ddo.hg
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 14235bcee4..24c9da8e17 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() //----------------------------------------------------------------------------- |
