aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--ChangeLog.txt9
-rw-r--r--linden/indra/newview/app_settings/settings.xml11
-rw-r--r--linden/indra/newview/llnetmap.cpp6
-rw-r--r--linden/indra/newview/llviewerobjectlist.cpp4
4 files changed, 24 insertions, 6 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt
index cb11c5d..6efb5e3 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -45,11 +45,18 @@
45 45
46 Aimee Trescothick <aimee@ama-zing.co.uk> 46 Aimee Trescothick <aimee@ama-zing.co.uk>
47 47
48 * VWR-4106: Mini-map beacon icon doesn't display correctly when beacon position above or below camera 48 * VWR-4106: Mini-map beacon icon doesn't display correctly when beacon position above or below camera.
49 49
50 modified: linden/indra/newview/llworldmapview.cpp 50 modified: linden/indra/newview/llworldmapview.cpp
51 modified: linden/indra/newview/llworldmapview.h 51 modified: linden/indra/newview/llworldmapview.h
52 52
53
54 * VWR-12631: setting to adjust the maximum size of objects displayed on the minimap (MiniMapPrimMaxRadius).
55
56 modified: linden/indra/newview/app_settings/settings.xml
57 modified: linden/indra/newview/llnetmap.cpp
58 modified: linden/indra/newview/llviewerobjectlist.cpp
59
53 60
542009-06-12 McCabe Maxsted <hakushakukun@gmail.com> 612009-06-12 McCabe Maxsted <hakushakukun@gmail.com>
55 62
diff --git a/linden/indra/newview/app_settings/settings.xml b/linden/indra/newview/app_settings/settings.xml
index f23daee..774a13b 100644
--- a/linden/indra/newview/app_settings/settings.xml
+++ b/linden/indra/newview/app_settings/settings.xml
@@ -4808,6 +4808,17 @@
4808 <key>Value</key> 4808 <key>Value</key>
4809 <integer>1</integer> 4809 <integer>1</integer>
4810 </map> 4810 </map>
4811 <key>MiniMapPrimMaxRadius</key>
4812 <map>
4813 <key>Comment</key>
4814 <string>Radius of the largest prim to show on the MiniMap. Increasing beyond 256 may cause client lag.</string>
4815 <key>Persist</key>
4816 <integer>1</integer>
4817 <key>Type</key>
4818 <string>F32</string>
4819 <key>Value</key>
4820 <real>256.0</real>
4821 </map>
4811 <key>MiniMapRotate</key> 4822 <key>MiniMapRotate</key>
4812 <map> 4823 <map>
4813 <key>Comment</key> 4824 <key>Comment</key>
diff --git a/linden/indra/newview/llnetmap.cpp b/linden/indra/newview/llnetmap.cpp
index 9c607e0..6fa6745 100644
--- a/linden/indra/newview/llnetmap.cpp
+++ b/linden/indra/newview/llnetmap.cpp
@@ -626,11 +626,7 @@ void LLNetMap::renderScaledPointGlobal( const LLVector3d& pos, const LLColor4U &
626 LLVector3 local_pos; 626 LLVector3 local_pos;
627 local_pos.setVec( pos - mObjectImageCenterGlobal ); 627 local_pos.setVec( pos - mObjectImageCenterGlobal );
628 628
629 // DEV-17370 - megaprims of size > 4096 cause lag. (go figger.) 629 S32 diameter_pixels = llround(2 * radius_meters * mObjectMapTPM);
630 const F32 MAX_RADIUS = 256.0f;
631 F32 radius_clamped = llmin(radius_meters, MAX_RADIUS);
632
633 S32 diameter_pixels = llround(2 * radius_clamped * mObjectMapTPM);
634 renderPoint( local_pos, color, diameter_pixels ); 630 renderPoint( local_pos, color, diameter_pixels );
635} 631}
636 632
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 {