Add Move To to avatar right click menus

This commit is contained in:
Liru Færs
2020-01-05 16:25:55 -05:00
parent dd3944161d
commit 734621be82
4 changed files with 34 additions and 1 deletions

View File

@@ -322,6 +322,17 @@ bool is_nearby(const LLUUID& id)
return std::find(avatars.begin(), avatars.end(), id) != avatars.end();
}
const LLVector3d& get_av_pos(const LLUUID& id)
{
if (const auto inst = LLFloaterAvatarList::getIfExists())
if (const auto av = inst->getAvatarEntry(id))
return av->getPosition();
LLWorld::pos_map_t avatars;
LLWorld::instance().getAvatars(&avatars);
return avatars[id];
}
void track_av(const LLUUID& id)
{
if (auto inst = LLFloaterAvatarList::getIfExists())