summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerobject.cpp
diff options
context:
space:
mode:
authorTodd Stinson <stinson@lindenlab.com>2012-08-27 13:31:07 -0700
committerTodd Stinson <stinson@lindenlab.com>2012-08-27 13:31:07 -0700
commitfc09a016a0272558a89e21a0228157eec3ed62cd (patch)
tree16ec329e435148f49eb785ff7b22626f8c4799a5 /indra/newview/llviewerobject.cpp
parent3091af7aeecb5083a167bf87ce291cc8e821b963 (diff)
MAINT-1480: Clearing the angular velocity accummulation when the updated angular velocity is set to zero.
Diffstat (limited to 'indra/newview/llviewerobject.cpp')
-rw-r--r--indra/newview/llviewerobject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llviewerobject.cpp b/indra/newview/llviewerobject.cpp
index 6c4e70add0..437a078061 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)
{
- if (flagUsePhysics())
+ if (flagUsePhysics() || new_angv.isExactlyZero())
{
resetRot();
}