diff options
author | Oz Linden <oz@lindenlab.com> | 2012-08-16 21:27:50 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2012-08-16 21:27:50 -0400 |
commit | a0be18bd2e268f692e781d376be7bef4e71e46fb (patch) | |
tree | 6e43af94f76e524c9d0556b1801d870d75231963 /indra/newview/llviewerobject.cpp | |
parent | 75a3183ad778cf2b7e2ed343345a82e3c0202ab0 (diff) | |
parent | 331a76afaaed8f802cf8c313eed8a287e75e93fc (diff) |
merge changes for DRTVWR-197
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 fc8192f14b..bbbf071570 100644 --- a/indra/newview/llviewerobject.cpp +++ b/indra/newview/llviewerobject.cpp @@ -2075,7 +2075,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) @@ -5547,9 +5547,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(); |