diff options
author | Oz Linden <oz@lindenlab.com> | 2012-08-20 14:45:47 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2012-08-20 14:45:47 -0400 |
commit | c2e902d56ac5d6b6109c1b12254c62ec18ad2199 (patch) | |
tree | eccb10bb1f2a558270fef9faa87ef1333e2f501a /indra/newview/llviewerobject.cpp | |
parent | 7204593ec3f6fca63c32bcb8cdcf9c356165d24e (diff) | |
parent | 2d28bc112a2db73b521d44e12b3c633cf8eccd7e (diff) |
merge back beta fixes
Diffstat (limited to 'indra/newview/llviewerobject.cpp')
-rw-r--r-- | indra/newview/llviewerobject.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/indra/newview/llviewerobject.cpp b/indra/newview/llviewerobject.cpp index 4ad0547379..8bc6a937d8 100644 --- a/indra/newview/llviewerobject.cpp +++ b/indra/newview/llviewerobject.cpp @@ -2043,7 +2043,7 @@ U32 LLViewerObject::processUpdateMessage(LLMessageSystem *mesgsys, { if (new_angv != old_angv) { - resetRot(); + resetRotTime(); } // Set the rotation of the object followed by adjusting for the accumulated angular velocity (llSetTargetOmega) @@ -5439,9 +5439,14 @@ void LLViewerObject::applyAngularVelocity(F32 dt) } } -void LLViewerObject::resetRot() +void LLViewerObject::resetRotTime() { mRotTime = 0.0f; +} + +void LLViewerObject::resetRot() +{ + resetRotTime(); // Reset the accumulated angular velocity rotation mAngularVelocityRot.loadIdentity(); |