diff options
author | Rye <rye@lindenlab.com> | 2024-11-08 13:03:31 -0500 |
---|---|---|
committer | Rye <rye@lindenlab.com> | 2024-11-08 13:03:31 -0500 |
commit | 8b496685f27a05cb97ac782424f0c9574db02676 (patch) | |
tree | cba4596eb4e35ee91c4db11a9096d244f799394f /indra | |
parent | 30ca4f02f503248212f7d1301ae2ff1835cf79bd (diff) |
Fix assert when retrieving data while mousing over minimap avatar dots
secondlife/viewer#3025
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llavatarpropertiesprocessor.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/newview/llavatarpropertiesprocessor.cpp b/indra/newview/llavatarpropertiesprocessor.cpp index 299cc5ed64..a108f5872c 100644 --- a/indra/newview/llavatarpropertiesprocessor.cpp +++ b/indra/newview/llavatarpropertiesprocessor.cpp @@ -31,6 +31,7 @@ // Viewer includes #include "llagent.h" #include "llagentpicksinfo.h" +#include "llappviewer.h" #include "lldateutil.h" #include "llviewergenericmessage.h" #include "llstartup.h" @@ -367,7 +368,11 @@ void LLAvatarPropertiesProcessor::requestAvatarPropertiesCoro(std::string cap_ur avatar_data.picks_list.emplace_back(pick_data["id"].asUUID(), pick_data["name"].asString()); } - inst.notifyObservers(avatar_id, &avatar_data, type); + LLAppViewer::instance()->postToMainCoro([=]() + { + LLAvatarData av_data = avatar_data; + instance().notifyObservers(avatar_id, &av_data, type); + }); } void LLAvatarPropertiesProcessor::processAvatarLegacyPropertiesReply(LLMessageSystem* msg, void**) |