diff options
| author | Callum Prentice <callum@lindenlab.com> | 2025-08-22 17:12:03 -0700 | 
|---|---|---|
| committer | Callum Prentice <callum@lindenlab.com> | 2025-08-22 17:12:03 -0700 | 
| commit | e935a8aebca4ae014b5f6b438612ac5674678fe6 (patch) | |
| tree | 531498d040a62c01d444fe91eb99afb091c7fff4 /indra/newview/llcontrolavatar.cpp | |
| parent | bebd1b208e1b342fabf59844851124a91513e83b (diff) | |
| parent | cefee59b0e5fff683a50fe61633a9c14493d7145 (diff) | |
Merge branch 'develop' into callum/viewer-cef-2025-08
Diffstat (limited to 'indra/newview/llcontrolavatar.cpp')
| -rw-r--r-- | indra/newview/llcontrolavatar.cpp | 16 | 
1 files changed, 8 insertions, 8 deletions
diff --git a/indra/newview/llcontrolavatar.cpp b/indra/newview/llcontrolavatar.cpp index 9201241856..660fb1b41a 100644 --- a/indra/newview/llcontrolavatar.cpp +++ b/indra/newview/llcontrolavatar.cpp @@ -129,14 +129,14 @@ void LLControlAvatar::getNewConstraintFixups(LLVector3& new_pos_fixup, F32& new_          {              LLVector3 pos_box_offset = point_to_box_offset(vol_pos, unshift_extents);              F32 offset_dist = pos_box_offset.length(); -            if (offset_dist > MAX_LEGAL_OFFSET && offset_dist > 0.f) +            if (offset_dist > max_legal_offset && offset_dist > 0.f)              { -                F32 target_dist = (offset_dist - MAX_LEGAL_OFFSET); +                F32 target_dist = (offset_dist - max_legal_offset);                  new_pos_fixup = (target_dist/offset_dist)*pos_box_offset;              }              if (new_pos_fixup != mPositionConstraintFixup)              { -                LL_DEBUGS("ConstraintFix") << getFullname() << " pos fix, offset_dist " << offset_dist << " pos fixup " +                LL_DEBUGS("ConstraintFix") << getDebugName() << " pos fix, offset_dist " << offset_dist << " pos fixup "                                             << new_pos_fixup << " was " << mPositionConstraintFixup << LL_ENDL;                  LL_DEBUGS("ConstraintFix") << "vol_pos " << vol_pos << LL_ENDL;                  LL_DEBUGS("ConstraintFix") << "extents " << extents[0] << " " << extents[1] << LL_ENDL; @@ -144,11 +144,11 @@ void LLControlAvatar::getNewConstraintFixups(LLVector3& new_pos_fixup, F32& new_              }          } -        if (box_size/mScaleConstraintFixup > MAX_LEGAL_SIZE) +        if (box_size/mScaleConstraintFixup > max_legal_size)          { -            new_scale_fixup = mScaleConstraintFixup* MAX_LEGAL_SIZE /box_size; -            LL_DEBUGS("ConstraintFix") << getFullname() << " scale fix, box_size " << box_size << " fixup " -                                       << mScaleConstraintFixup << " max legal " << MAX_LEGAL_SIZE +            new_scale_fixup = mScaleConstraintFixup*max_legal_size/box_size; +            LL_DEBUGS("ConstraintFix") << getDebugName() << " scale fix, box_size " << box_size << " fixup " +                                       << mScaleConstraintFixup << " max legal " << max_legal_size                                         << " -> new scale " << new_scale_fixup << LL_ENDL;          }      } @@ -231,7 +231,7 @@ void LLControlAvatar::matchVolumeTransform()              const LLMeshSkinInfo* skin_info = mRootVolp->getSkinInfo();              if (skin_info)              { -                LL_DEBUGS("BindShape") << getFullname() << " bind shape " << skin_info->mBindShapeMatrix << LL_ENDL; +                LL_DEBUGS("BindShape") << getDebugName() << " bind shape " << skin_info->mBindShapeMatrix << LL_ENDL;                  bind_rot = LLSkinningUtil::getUnscaledQuaternion(LLMatrix4(skin_info->mBindShapeMatrix));              }  #endif  | 
