From bd7cd9245a963ecba3e31396b01598cfca4a9750 Mon Sep 17 00:00:00 2001 From: Lirusaito Date: Thu, 16 Aug 2012 09:21:46 -0400 Subject: [PATCH 1/7] A tiny sync with v-d in LLGLSandBox/LLViewerParcelMgr --- indra/newview/llglsandbox.cpp | 82 +++++++++++++++---------------- indra/newview/llviewerparcelmgr.h | 3 -- 2 files changed, 40 insertions(+), 45 deletions(-) diff --git a/indra/newview/llglsandbox.cpp b/indra/newview/llglsandbox.cpp index 07f73ac7a..be658d131 100644 --- a/indra/newview/llglsandbox.cpp +++ b/indra/newview/llglsandbox.cpp @@ -67,11 +67,14 @@ #include "llresmgr.h" #include "pipeline.h" #include "llspatialpartition.h" - + // [RLVa:KB] #include "rlvhandler.h" // [/RLVa:KB] +// Height of the yellow selection highlight posts for land +const F32 PARCEL_POST_HEIGHT = 0.666f; + // Returns true if you got at least one object void LLToolSelectRect::handleRectangleSelection(S32 x, S32 y, MASK mask) { @@ -708,29 +711,27 @@ void LLViewerParcelMgr::renderCollisionSegments(U8* segments, BOOL use_pass, LLV x2 = x1 + PARCEL_GRID_STEP_METERS; y2 = y1; - { - dy = (pos_y - y1) + DIST_OFFSET; - - if (pos_x < x1) - dx = pos_x - x1; - else if (pos_x > x2) - dx = pos_x - x2; - else - dx = 0; - - dist = dx*dx+dy*dy; + dy = (pos_y - y1) + DIST_OFFSET; - if (dist < MIN_DIST_SQ) - alpha = MAX_ALPHA; - else if (dist > MAX_DIST_SQ) - alpha = 0.0f; - else - alpha = 30/dist; + if (pos_x < x1) + dx = pos_x - x1; + else if (pos_x > x2) + dx = pos_x - x2; + else + dx = 0; - alpha = llclamp(alpha, 0.0f, MAX_ALPHA); + dist = dx*dx+dy*dy; - gGL.color4f(1.f, 1.f, 1.f, alpha); - } + if (dist < MIN_DIST_SQ) + alpha = MAX_ALPHA; + else if (dist > MAX_DIST_SQ) + alpha = 0.0f; + else + alpha = 30/dist; + + alpha = llclamp(alpha, 0.0f, MAX_ALPHA); + + gGL.color4f(1.f, 1.f, 1.f, alpha); if ((pos_y - y1) < 0) direction = SOUTH_MASK; else direction = NORTH_MASK; @@ -748,29 +749,27 @@ void LLViewerParcelMgr::renderCollisionSegments(U8* segments, BOOL use_pass, LLV x2 = x1; y2 = y1 + PARCEL_GRID_STEP_METERS; - { - dx = (pos_x - x1) + DIST_OFFSET; - - if (pos_y < y1) - dy = pos_y - y1; - else if (pos_y > y2) - dy = pos_y - y2; - else - dy = 0; + dx = (pos_x - x1) + DIST_OFFSET; - dist = dx*dx+dy*dy; - - if (dist < MIN_DIST_SQ) - alpha = MAX_ALPHA; - else if (dist > MAX_DIST_SQ) - alpha = 0.0f; - else - alpha = 30/dist; + if (pos_y < y1) + dy = pos_y - y1; + else if (pos_y > y2) + dy = pos_y - y2; + else + dy = 0; - alpha = llclamp(alpha, 0.0f, MAX_ALPHA); + dist = dx*dx+dy*dy; - gGL.color4f(1.f, 1.f, 1.f, alpha); - } + if (dist < MIN_DIST_SQ) + alpha = MAX_ALPHA; + else if (dist > MAX_DIST_SQ) + alpha = 0.0f; + else + alpha = 30/dist; + + alpha = llclamp(alpha, 0.0f, MAX_ALPHA); + + gGL.color4f(1.f, 1.f, 1.f, alpha); if ((pos_x - x1) > 0) direction = WEST_MASK; else direction = EAST_MASK; @@ -927,4 +926,3 @@ void LLViewerObjectList::renderObjectBeacons() } - \ No newline at end of file diff --git a/indra/newview/llviewerparcelmgr.h b/indra/newview/llviewerparcelmgr.h index 72531ff55..49571f80a 100644 --- a/indra/newview/llviewerparcelmgr.h +++ b/indra/newview/llviewerparcelmgr.h @@ -53,9 +53,6 @@ class LLViewerRegion; // | EAST_MASK // | WEST_MASK); -const F32 PARCEL_POST_HEIGHT = 0.666f; -//const F32 PARCEL_POST_HEIGHT = 20.f; - // Specify the type of land transfer taking place //enum ELandTransferType //{ From b9ee7cc30a4823e646a69d1afc9d1572ad484ac0 Mon Sep 17 00:00:00 2001 From: Lirusaito Date: Wed, 29 Aug 2012 19:20:44 -0400 Subject: [PATCH 2/7] Expose pick import/export feature Why did Beeks ever comment this out? Certainly works now... --- indra/newview/skins/default/xui/en-us/panel_avatar.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/indra/newview/skins/default/xui/en-us/panel_avatar.xml b/indra/newview/skins/default/xui/en-us/panel_avatar.xml index 5b7eb923c..3c953c965 100644 --- a/indra/newview/skins/default/xui/en-us/panel_avatar.xml +++ b/indra/newview/skins/default/xui/en-us/panel_avatar.xml @@ -335,12 +335,12 @@