diff options
| author | Richard Nelson <richard@lindenlab.com> | 2009-10-20 01:40:13 +0000 |
|---|---|---|
| committer | Richard Nelson <richard@lindenlab.com> | 2009-10-20 01:40:13 +0000 |
| commit | 2180706f4cb5e8f5ba24b3973a25a50c6176be38 (patch) | |
| tree | 9cf04740dfbccbe199a3c7c129a3a3e4201e81b2 /indra/newview/llworldmap.cpp | |
| parent | 6d60cbde9955d7290e6e33f33c107c5d729d5a77 (diff) | |
EXT-1583 - Landmark "Favorites Bar" item tool-tips need to remain onscreen while mouse pointer is over them.
also, improved tooltip display to show region name and coordinates
reviewed by Leyla
Diffstat (limited to 'indra/newview/llworldmap.cpp')
| -rw-r--r-- | indra/newview/llworldmap.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/newview/llworldmap.cpp b/indra/newview/llworldmap.cpp index b8ecd9556f..829d631473 100644 --- a/indra/newview/llworldmap.cpp +++ b/indra/newview/llworldmap.cpp @@ -94,6 +94,13 @@ LLVector3d LLSimInfo::getGlobalPos(LLVector3 local_pos) const return pos; } +LLVector3 LLSimInfo::getLocalPos(LLVector3d global_pos) const +{ + LLVector3d sim_origin = from_region_handle(mHandle); + return LLVector3(global_pos - sim_origin); +} + + //--------------------------------------------------------------------------- // World Map |
