diff options
author | Xiaohong Bao <bao@lindenlab.com> | 2013-01-15 14:14:29 -0700 |
---|---|---|
committer | Xiaohong Bao <bao@lindenlab.com> | 2013-01-15 14:14:29 -0700 |
commit | 7378259aa551c395b67e40196487584eaf5e8007 (patch) | |
tree | 1ce52ad4aab0630a8f3475fd8c36cbe35e772d3d /indra/newview/llagent.cpp | |
parent | c539004c7ebec31d7e61209e7110ec96c867aaa6 (diff) |
for SH-3667: Create an extendable recording tied to scene load time
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() //----------------------------------------------------------------------------- |