diff --git a/indra/newview/llvoavatar.cpp b/indra/newview/llvoavatar.cpp
index 9bfb402b03a210ccd73fc0d90017d8626afbab24..08c0d9a1167d8675f787e8eab348996264347189 100755
--- a/indra/newview/llvoavatar.cpp
+++ b/indra/newview/llvoavatar.cpp
@@ -5317,9 +5317,9 @@ void LLVOAvatar::clearAttachmentPosOverrides()
 
 bool above_joint_pos_threshold(const LLVector3& diff)
 {
-    return !diff.isNull();
-    //const F32 max_joint_pos_offset = 0.0001f; // 0.1 mm
-    //return diff.lengthSquared() > max_joint_pos_offset * max_joint_pos_offset;
+    //return !diff.isNull();
+    const F32 max_joint_pos_offset = 0.0001f; // 0.1 mm
+    return diff.lengthSquared() > max_joint_pos_offset * max_joint_pos_offset;
 }
 
 //-----------------------------------------------------------------------------