summaryrefslogtreecommitdiff
path: root/indra/newview/llagent.cpp
diff options
context:
space:
mode:
authorRichard Linden <none@none>2013-03-18 23:39:44 -0700
committerRichard Linden <none@none>2013-03-18 23:39:44 -0700
commitc01c798e73ab7dd05db4ed0fa831b44928945996 (patch)
tree5645bc381bcec8ef259a644da327be89baea25b0 /indra/newview/llagent.cpp
parent452d3350a241695d962dc58403ce4e35541b6353 (diff)
parentf59bd5f89ffd2dadbd3d7514cfa8e8cc97172201 (diff)
Automated merge with ssh://hg.lindenlab.com/richard/viewer-interesting-metrics
Diffstat (limited to 'indra/newview/llagent.cpp')
-rwxr-xr-xindra/newview/llagent.cpp8
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()
//-----------------------------------------------------------------------------