diff options
author | prep linden <prep@lindenlab.com> | 2011-06-16 15:23:49 -0400 |
---|---|---|
committer | prep linden <prep@lindenlab.com> | 2011-06-16 15:23:49 -0400 |
commit | 6d436f152b5a8d5bc2a048bb46000770b23cffd1 (patch) | |
tree | 9c101f1d18de4be71e491b3b6aad0bd9b12a5ff4 /indra/newview | |
parent | 1b3f3fa7a66733c733a10963a2cf22477c3190e9 (diff) |
Fix for camera wonkiness (sh-1654 ...)
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llagentcamera.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/indra/newview/llagentcamera.cpp b/indra/newview/llagentcamera.cpp index 80085dad9d..c30d3b9aa3 100644 --- a/indra/newview/llagentcamera.cpp +++ b/indra/newview/llagentcamera.cpp @@ -392,11 +392,9 @@ LLVector3 LLAgentCamera::calcFocusOffset(LLViewerObject *object, LLVector3 origi } LLQuaternion inv_obj_rot = ~obj_rot; // get inverse of rotation - LLVector3 object_extents; + LLVector3 object_extents = object->getScale(); const LLVector4a* oe4 = object->mDrawable->getSpatialExtents(); - LLVector4a size; - size.setSub(oe4[1], oe4[0]); - object_extents.set( size[0], size[1], size[2] ); + 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); |