diff options
author | Dave Parks <davep@lindenlab.com> | 2011-03-21 10:51:52 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2011-03-21 10:51:52 -0500 |
commit | 5b9ee2a9d5687eae6fd48ee6038cd2f7ed1d9a53 (patch) | |
tree | e066174191ad303484d864869e49cc4be64d91e0 /indra/newview/llface.cpp | |
parent | be553242ef706e33260f3f9e62d02f4720f00473 (diff) | |
parent | bf3fb2566329a461ebf022a1a05a1fa95faff9aa (diff) |
merge
Diffstat (limited to 'indra/newview/llface.cpp')
-rw-r--r-- | indra/newview/llface.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/indra/newview/llface.cpp b/indra/newview/llface.cpp index 290115417f..ae455a8287 100644 --- a/indra/newview/llface.cpp +++ b/indra/newview/llface.cpp @@ -1729,6 +1729,7 @@ BOOL LLFace::calcPixelArea(F32& cos_angle_to_view_dir, F32& radius) t.load3(camera->getOrigin().mV); lookAt.setSub(center, t); F32 dist = lookAt.getLength3().getF32(); + dist = llmax(dist-size.getLength3().getF32(), 0.f); lookAt.normalize3fast() ; //get area of circle around node |