Skip to content
Snippets Groups Projects
Commit 99110329 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Fix findChild stall on complexity update

parent 0cfeaff8
No related branches found
No related tags found
No related merge requests found
...@@ -571,10 +571,13 @@ bool LLSidepanelAppearance::isWearableEditPanelVisible() const ...@@ -571,10 +571,13 @@ bool LLSidepanelAppearance::isWearableEditPanelVisible() const
void LLSidepanelAppearance::updateAvatarComplexity(U32 complexity, const std::map<LLUUID, U32>& item_complexity, const std::map<LLUUID, U32>& temp_item_complexity, U32 body_parts_complexity) void LLSidepanelAppearance::updateAvatarComplexity(U32 complexity, const std::map<LLUUID, U32>& item_complexity, const std::map<LLUUID, U32>& temp_item_complexity, U32 body_parts_complexity)
{ {
LLSidepanelAppearance* instance = LLFloaterSidePanelContainer::getPanel<LLSidepanelAppearance>("appearance"); LLSidepanelAppearance* instance = LLFloaterSidePanelContainer::getPanel<LLSidepanelAppearance>("appearance");
if (instance->mLastAvatarComplexity != complexity) if(instance)
{ {
instance->mPanelOutfitsInventory->updateAvatarComplexity(complexity, item_complexity, temp_item_complexity, body_parts_complexity); if (instance->mLastAvatarComplexity != complexity)
instance->mOutfitEdit->updateAvatarComplexity(complexity); {
instance->mPanelOutfitsInventory->updateAvatarComplexity(complexity, item_complexity, temp_item_complexity, body_parts_complexity);
instance->mOutfitEdit->updateAvatarComplexity(complexity);
}
instance->mLastAvatarComplexity = complexity;
} }
instance->mLastAvatarComplexity = complexity;
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment