aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewerobjectlist.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2009-06-13 21:55:31 -0700
committerMcCabe Maxsted2009-06-13 21:55:31 -0700
commit0280f6e63524bf8f4bc9741fb8086590a278accd (patch)
tree1cbbccea711e2be4d43878f3e31a16616926c8cf /linden/indra/newview/llviewerobjectlist.cpp
parentApplied Aimee's patch for VWR-4106: Mini-map beacon icon doesn't display corr... (diff)
downloadmeta-impy-0280f6e63524bf8f4bc9741fb8086590a278accd.zip
meta-impy-0280f6e63524bf8f4bc9741fb8086590a278accd.tar.gz
meta-impy-0280f6e63524bf8f4bc9741fb8086590a278accd.tar.bz2
meta-impy-0280f6e63524bf8f4bc9741fb8086590a278accd.tar.xz
Applied Aimee's patch for VWR-12631: setting to adjust the maximum size of objects displayed on the minimap (MiniMapPrimMaxRadius)
Diffstat (limited to 'linden/indra/newview/llviewerobjectlist.cpp')
-rw-r--r--linden/indra/newview/llviewerobjectlist.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/linden/indra/newview/llviewerobjectlist.cpp b/linden/indra/newview/llviewerobjectlist.cpp
index 78398bb..9ccbf99 100644
--- a/linden/indra/newview/llviewerobjectlist.cpp
+++ b/linden/indra/newview/llviewerobjectlist.cpp
@@ -1030,6 +1030,7 @@ void LLViewerObjectList::renderObjectsForMap(LLNetMap &netmap)
1030 LLColor4 group_own_below_water_color = 1030 LLColor4 group_own_below_water_color =
1031 gColors.getColor( "NetMapGroupOwnBelowWater" ); 1031 gColors.getColor( "NetMapGroupOwnBelowWater" );
1032 1032
1033 F32 max_radius = gSavedSettings.getF32("MiniMapPrimMaxRadius");
1033 1034
1034 for (S32 i = 0; i < mMapObjects.count(); i++) 1035 for (S32 i = 0; i < mMapObjects.count(); i++)
1035 { 1036 {
@@ -1045,6 +1046,9 @@ void LLViewerObjectList::renderObjectsForMap(LLNetMap &netmap)
1045 1046
1046 F32 approx_radius = (scale.mV[VX] + scale.mV[VY]) * 0.5f * 0.5f * 1.3f; // 1.3 is a fudge 1047 F32 approx_radius = (scale.mV[VX] + scale.mV[VY]) * 0.5f * 0.5f * 1.3f; // 1.3 is a fudge
1047 1048
1049 // DEV-17370 - megaprims of size > 4096 cause lag. (go figger.)
1050 approx_radius = llmin(approx_radius, max_radius);
1051
1048 LLColor4U color = above_water_color; 1052 LLColor4U color = above_water_color;
1049 if( objectp->permYouOwner() ) 1053 if( objectp->permYouOwner() )
1050 { 1054 {