diff options
author | Tofu Buzzard <no-email> | 2011-03-10 10:21:16 -0800 |
---|---|---|
committer | Tofu Buzzard <no-email> | 2011-03-10 10:21:16 -0800 |
commit | 410d99d745df3b6b2a4d8911bb7f55f44c96fa39 (patch) | |
tree | 41b590d95bb9c28931acbc128cf34258ad8908da /indra/newview | |
parent | ce4fe510b7345eac536f5bc68d8e113f7eb9e26d (diff) | |
parent | fb00d280403b2befd645b8a80c3d9a3183e4c02c (diff) |
merge
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llagentcamera.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/newview/llagentcamera.cpp b/indra/newview/llagentcamera.cpp index 2825c32d79..f5fd33d5e0 100644 --- a/indra/newview/llagentcamera.cpp +++ b/indra/newview/llagentcamera.cpp @@ -393,10 +393,12 @@ LLVector3 LLAgentCamera::calcFocusOffset(LLViewerObject *object, LLVector3 origi { return original_focus_point - obj_pos; } - LLQuaternion inv_obj_rot = ~obj_rot; // get inverse of rotation - LLVector3 object_extents = object->getScale(); + LLVector3 object_extents; + const LLVector4a* oe4 = object->mDrawable->getSpatialExtents(); + object_extents.set( oe4[1][0], oe4[1][1], oe4[1][2] ); + // make sure they object extents are non-zero object_extents.clamp(0.001f, F32_MAX); |