summaryrefslogtreecommitdiff
path: root/indra/newview/llviewermenu.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2021-12-15 21:16:26 +0200
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2021-12-15 21:16:47 +0200
commit7c1cd47772ac7a19534770d6e7479f6e907a181c (patch)
treecb5b5a38cad8f90bca4f0770c0048cca4d1e35a3 /indra/newview/llviewermenu.cpp
parentac54b72974f3d00d0e02fdc5aec86f1e632df76d (diff)
parent0a873cd95547f003878c6d00d0883ff792f4a865 (diff)
Merge branch 'master' (DRTVWR-552) into DRTVWR-527-maint
# Conflicts: # indra/media_plugins/cef/media_plugin_cef.cpp - setOnLoadEndCallback # indra/newview/llviewerassetstorage.cpp - mAssetCoroCount
Diffstat (limited to 'indra/newview/llviewermenu.cpp')
-rw-r--r--indra/newview/llviewermenu.cpp49
1 files changed, 46 insertions, 3 deletions
diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp
index 75f9491dd0..17bf82e829 100644
--- a/indra/newview/llviewermenu.cpp
+++ b/indra/newview/llviewermenu.cpp
@@ -1274,12 +1274,55 @@ class LLAdvancedDumpScriptedCamera : public view_listener_t
class LLAdvancedDumpRegionObjectCache : public view_listener_t
{
bool handleEvent(const LLSD& userdata)
-{
+ {
handle_dump_region_object_cache(NULL);
return true;
}
};
+class LLAdvancedInterestListFullUpdate : public view_listener_t
+{
+ bool handleEvent(const LLSD& userdata)
+ {
+ LLSD request;
+ LLSD body;
+ static bool using_360 = false;
+
+ if (using_360)
+ {
+ body["mode"] = LLSD::String("default");
+ }
+ else
+ {
+ body["mode"] = LLSD::String("360");
+ }
+ using_360 = !using_360;
+
+ if (gAgent.requestPostCapability("InterestList", body, [](const LLSD& response)
+ {
+ LL_INFOS("360Capture") <<
+ "InterestList capability responded: \n" <<
+ ll_pretty_print_sd(response) <<
+ LL_ENDL;
+ }))
+ {
+ LL_INFOS("360Capture") <<
+ "Successfully posted an InterestList capability request with payload: \n" <<
+ ll_pretty_print_sd(body) <<
+ LL_ENDL;
+ return true;
+ }
+ else
+ {
+ LL_INFOS("360Capture") <<
+ "Unable to post an InterestList capability request with payload: \n" <<
+ ll_pretty_print_sd(body) <<
+ LL_ENDL;
+ return false;
+ }
+ }
+};
+
class LLAdvancedBuyCurrencyTest : public view_listener_t
{
bool handleEvent(const LLSD& userdata)
@@ -2335,11 +2378,10 @@ class LLAdvancedLeaveAdminStatus : public view_listener_t
// Advanced > Debugging //
//////////////////////////
-
class LLAdvancedForceErrorBreakpoint : public view_listener_t
{
bool handleEvent(const LLSD& userdata)
- {
+ {
force_error_breakpoint(NULL);
return true;
}
@@ -9219,6 +9261,7 @@ void initialize_menus()
// Advanced > World
view_listener_t::addMenu(new LLAdvancedDumpScriptedCamera(), "Advanced.DumpScriptedCamera");
view_listener_t::addMenu(new LLAdvancedDumpRegionObjectCache(), "Advanced.DumpRegionObjectCache");
+ view_listener_t::addMenu(new LLAdvancedInterestListFullUpdate(), "Advanced.InterestListFullUpdate");
// Advanced > UI
commit.add("Advanced.WebBrowserTest", boost::bind(&handle_web_browser_test, _2)); // sigh! this one opens the MEDIA browser