diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2013-07-02 10:09:37 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2013-07-02 10:09:37 -0400 |
commit | 774c410cc7538c1fdfcbf17250aa38532012d683 (patch) | |
tree | 9c2e647ca47425976eb9f611f2230e9e73213e68 /indra/newview | |
parent | 3d9c74dcc869d7ce3708426a0b45bfb838529d3f (diff) |
CHOP-959: add POSITION_LOCAL to LLFloaterAbout::getInfo() blob.
The existing POSITION variable gives "global" position: that is, your region-
local coordinates plus the (somewhat arbitrary) global coordinates of the
region's corner within the whole world. That may be meaningful to people on
the mainland, hard to say, but it correlates with nothing else available from
the viewer. POSITION_LOCAL gives you region-local coordinates, which could be
used (for instance) to construct a SLURL.
Diffstat (limited to 'indra/newview')
-rwxr-xr-x | indra/newview/llfloaterabout.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/llfloaterabout.cpp b/indra/newview/llfloaterabout.cpp index 83fb887d81..318a03f755 100755 --- a/indra/newview/llfloaterabout.cpp +++ b/indra/newview/llfloaterabout.cpp @@ -250,8 +250,9 @@ LLSD LLFloaterAbout::getInfo() LLViewerRegion* region = gAgent.getRegion(); if (region) { - const LLVector3d &pos = gAgent.getPositionGlobal(); + LLVector3d pos = gAgent.getPositionGlobal(); info["POSITION"] = ll_sd_from_vector3d(pos); + info["POSITION_LOCAL"] = ll_sd_from_vector3(gAgent.getPosAgentFromGlobal(pos)); info["REGION"] = gAgent.getRegion()->getName(); info["HOSTNAME"] = gAgent.getRegion()->getHost().getHostName(); info["HOSTIP"] = gAgent.getRegion()->getHost().getString(); |