summaryrefslogtreecommitdiff
path: root/indra/newview/llface.cpp
diff options
context:
space:
mode:
authorLeyla Farazha <leyla@lindenlab.com>2011-03-23 11:36:00 -0700
committerLeyla Farazha <leyla@lindenlab.com>2011-03-23 11:36:00 -0700
commit3ad81bb4a642d25018b773d2ef005380664d8170 (patch)
treeb1bbf66c0babf6c541858b34d4a7f66ad19308b0 /indra/newview/llface.cpp
parenta2c659378b8b7c8a4128c61b5cde91eccc9db4e6 (diff)
parent62a958d341532287519a23a362ff7aebd501e1c9 (diff)
Merge
Diffstat (limited to 'indra/newview/llface.cpp')
-rw-r--r--indra/newview/llface.cpp1
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