diff --git a/indra/newview/lltracker.cpp b/indra/newview/lltracker.cpp index df373f603a..e8ecc87b18 100644 --- a/indra/newview/lltracker.cpp +++ b/indra/newview/lltracker.cpp @@ -535,6 +535,7 @@ void LLTracker::renderBeacon(LLVector3d pos_global, fogged_color.mV[3] = llmax(0.2f, llmin(0.5f,(dist-FADE_DIST)/FADE_DIST)); LLVector3 pos_agent = gAgent.getPosAgentFromGlobal(pos_global); + LLVector3d pos_agent_3d = gAgent.getPositionGlobal(); // FIRE-8234 LLGLSTracker gls_tracker; // default+ CULL_FACE + LIGHTING + GL_BLEND + GL_ALPHA_TEST gGL.getTexUnit(0)->unbind(LLTexUnit::TT_TEXTURE); @@ -601,7 +602,11 @@ void LLTracker::renderBeacon(LLVector3d pos_global, gGL.popMatrix(); std::string text; - text = llformat( "%.0f m", to_vec.magVec()); + // FIRE-8234 - Show distance from avatar rather than distance from camera. + // (Distance from camera is somewhat useless) + //text = llformat( "%.0f m", to_vec.magVec()); + text = llformat("%.0f m", dist_vec(pos_global, pos_agent_3d)); + // std::string str; str += label;