summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelprofile.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-10-24 00:14:21 +0300
committerakleshchev <117672381+akleshchev@users.noreply.github.com>2023-10-25 19:13:21 +0300
commitf54d0329f32081883704cc2694871600f896006b (patch)
treed07b710d11e2f69402ee17fc8ff761aed16d670e /indra/newview/llpanelprofile.cpp
parentd4087fce7b36625259576d5964c5a8dd8e93d707 (diff)
SL-20513 Cleanup LLAvatarPropertiesProcessor #2
Diffstat (limited to 'indra/newview/llpanelprofile.cpp')
-rw-r--r--indra/newview/llpanelprofile.cpp25
1 files changed, 11 insertions, 14 deletions
diff --git a/indra/newview/llpanelprofile.cpp b/indra/newview/llpanelprofile.cpp
index ba5f6e2e09..7cd58ff6f4 100644
--- a/indra/newview/llpanelprofile.cpp
+++ b/indra/newview/llpanelprofile.cpp
@@ -211,6 +211,15 @@ void request_avatar_properties_coro(std::string cap_url, LLUUID agent_id)
avatar_data->group_list.push_back(group_data);
}
+ // Picks
+ LLSD picks_array = result["picks"];
+
+ for (LLSD::array_const_iterator it = picks_array.beginArray(); it != picks_array.endArray(); ++it)
+ {
+ const LLSD& pick_data = *it;
+ avatar_data->picks_list.emplace_back(pick_data["id"].asUUID(), pick_data["name"].asString());
+ }
+
panel = floater_profile->findChild<LLPanel>(PANEL_SECONDLIFE, TRUE);
LLPanelProfileSecondLife *panel_sl = dynamic_cast<LLPanelProfileSecondLife*>(panel);
if (panel_sl)
@@ -239,25 +248,13 @@ void request_avatar_properties_coro(std::string cap_url, LLUUID agent_id)
panel_notes->processProperties(avatar_data);
}
- // Picks
- LLSD picks_array = result["picks"];
- LLAvatarPicks avatar_picks;
- avatar_picks.agent_id = agent_id; // Not in use?
- avatar_picks.target_id = agent_id;
-
- for (LLSD::array_const_iterator it = picks_array.beginArray(); it != picks_array.endArray(); ++it)
- {
- const LLSD& pick_data = *it;
- avatar_picks.picks_list.emplace_back(pick_data["id"].asUUID(), pick_data["name"].asString());
- }
-
panel = floater_profile->findChild<LLPanel>(PANEL_PICKS, TRUE);
LLPanelProfilePicks *panel_picks = dynamic_cast<LLPanelProfilePicks*>(panel);
if (panel_picks)
{
// Refresh pick limit before processing
- LLAgentPicksInfo::getInstance()->onServerRespond(&avatar_picks);
- panel_picks->processProperties(&avatar_picks);
+ LLAgentPicksInfo::getInstance()->onServerRespond(avatar_data);
+ panel_picks->processProperties(avatar_data);
}
}