aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llvotree.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:42 -0500
committerJacek Antonelli2008-08-15 23:45:42 -0500
commitce28e056c20bf2723f565bbf464b87781ec248a2 (patch)
treeef7b0501c4de4b631a916305cbc2a5fdc125e52d /linden/indra/newview/llvotree.cpp
parentSecond Life viewer sources 1.19.1.4b (diff)
downloadmeta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.zip
meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.gz
meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.bz2
meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.xz
Second Life viewer sources 1.20.2
Diffstat (limited to 'linden/indra/newview/llvotree.cpp')
-rw-r--r--linden/indra/newview/llvotree.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/linden/indra/newview/llvotree.cpp b/linden/indra/newview/llvotree.cpp
index 4630127..a55afe1 100644
--- a/linden/indra/newview/llvotree.cpp
+++ b/linden/indra/newview/llvotree.cpp
@@ -399,8 +399,8 @@ void LLVOTree::setPixelAreaAndAngle(LLAgent &agent)
399 F32 area = max_scale * (max_scale*mBillboardRatio); 399 F32 area = max_scale * (max_scale*mBillboardRatio);
400 400
401 // Compute pixels per meter at the given range 401 // Compute pixels per meter at the given range
402 F32 pixels_per_meter = gCamera->getViewHeightInPixels() / 402 F32 pixels_per_meter = LLViewerCamera::getInstance()->getViewHeightInPixels() /
403 (tan(gCamera->getView()) * range); 403 (tan(LLViewerCamera::getInstance()->getView()) * range);
404 404
405 mPixelArea = (pixels_per_meter) * (pixels_per_meter) * area; 405 mPixelArea = (pixels_per_meter) * (pixels_per_meter) * area;
406#if 0 406#if 0