diff options
author | Richard Linden <none@none> | 2013-02-13 15:26:43 -0800 |
---|---|---|
committer | Richard Linden <none@none> | 2013-02-13 15:26:43 -0800 |
commit | dcf4e489213d6e954a34fbb3c5c96e94645b868b (patch) | |
tree | 31eff571382cf2c553ce459aa3637221a4c78453 /indra/newview/llagent.cpp | |
parent | a6bb68b6e530df91d03abfc062c700ebc4e856aa (diff) | |
parent | 50d35d00cb68f0c9119b562f85ccefa4d279f0f9 (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 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() //----------------------------------------------------------------------------- |