aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llvotree.cpp
diff options
context:
space:
mode:
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