diff options
author | Maxim Nikolenko <maximnproductengine@lindenlab.com> | 2025-01-28 02:45:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-28 02:45:37 +0200 |
commit | 43a966eea43e5df361da68cbb1da3e1b1f38a03b (patch) | |
tree | 7ad38c5fbce7af835313389090305c92dadab5f5 /indra/newview | |
parent | 52a9316207f225e39a1e192ee8e666631ba6a646 (diff) |
#3466 Crash at LLScrollingPanelParam::draw
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llappearancemgr.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/indra/newview/llappearancemgr.cpp b/indra/newview/llappearancemgr.cpp index 946d674e8b..4e0c5d7df0 100644 --- a/indra/newview/llappearancemgr.cpp +++ b/indra/newview/llappearancemgr.cpp @@ -537,9 +537,14 @@ LLUpdateAppearanceOnDestroy::~LLUpdateAppearanceOnDestroy() selfStopPhase("update_appearance_on_destroy"); - LLAppearanceMgr::instance().updateAppearanceFromCOF(mEnforceItemRestrictions, - mEnforceOrdering, - mPostUpdateFunc); + //avoid calling an update inside coroutine + bool force_restrictions(mEnforceItemRestrictions); + bool enforce_ordering(mEnforceOrdering); + nullary_func_t post_update_func(mPostUpdateFunc); + doOnIdleOneTime([force_restrictions,enforce_ordering,post_update_func]() + { + LLAppearanceMgr::instance().updateAppearanceFromCOF(force_restrictions, enforce_ordering, post_update_func); + }); } } |