diff options
| author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2016-11-22 16:30:32 +0200 | 
|---|---|---|
| committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2016-11-22 16:30:32 +0200 | 
| commit | 70b71738d5222aa1cc56047c382f6024d6388486 (patch) | |
| tree | f37e56e54332b7c01aaad78996d0526824d1597a /indra | |
| parent | 416a46711df4dfe28a22bef47ef9c97aa96b061a (diff) | |
MAINT-6949 Visual Outfit Browser - rename worn outfit is not reflected in gallery view
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/newview/lloutfitslist.cpp | 11 | 
1 files changed, 9 insertions, 2 deletions
| diff --git a/indra/newview/lloutfitslist.cpp b/indra/newview/lloutfitslist.cpp index 87c3c5042b..e1f51e62e3 100644 --- a/indra/newview/lloutfitslist.cpp +++ b/indra/newview/lloutfitslist.cpp @@ -872,8 +872,15 @@ void LLOutfitListBase::refreshList(const LLUUID& category_id)          ++items_iter)      {          LLViewerInventoryCategory *cat = gInventory.getCategory(*items_iter); -        if (!cat) return; - +        if (!cat) +        { +            LLInventoryObject* obj = gInventory.getObject(*items_iter); +            if(!obj || (obj->getType() != LLAssetType::AT_CATEGORY)) +            { +                return; +            } +            cat = (LLViewerInventoryCategory*)obj; +        }          std::string name = cat->getName();          updateChangedCategoryName(cat, name); | 
