diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2025-08-07 20:53:19 +0300 |
---|---|---|
committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2025-08-08 16:05:33 +0300 |
commit | 7f276f81ed8c8ef4f2208f5e43b817e1a258988e (patch) | |
tree | 6e5dc54b1d4feaa9ce1c70b4d71f9ef93b990af3 /indra/llui/llurlaction.cpp | |
parent | 819817f5c9cebad353f5b86996b5426095dd73b8 (diff) |
#4474 Zoom in to Object From Chat
Url based handler for compact chat
Normal handling for expanded chat.
Diffstat (limited to 'indra/llui/llurlaction.cpp')
-rw-r--r-- | indra/llui/llurlaction.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/llui/llurlaction.cpp b/indra/llui/llurlaction.cpp index ce599a7552..e86a02d1df 100644 --- a/indra/llui/llurlaction.cpp +++ b/indra/llui/llurlaction.cpp @@ -117,6 +117,16 @@ void LLUrlAction::teleportToLocation(std::string url) } } +void LLUrlAction::zoomInObject(std::string url) +{ + LLUrlMatch match; + std::string object_id = getObjectId(url); + if (LLUUID::validate(object_id) && LLUrlRegistry::instance().findUrl(url, match)) + { + executeSLURL("secondlife:///app/object/" + object_id + "/zoomin/" + match.getLocation()); + } +} + void LLUrlAction::showLocationOnMap(std::string url) { LLUrlMatch match; |