diff options
author | maxim_productengine <mnikolenko@productengine.com> | 2018-08-01 17:41:34 +0300 |
---|---|---|
committer | maxim_productengine <mnikolenko@productengine.com> | 2018-08-01 17:41:34 +0300 |
commit | 4dd88ee738da3851d4cf5f8ffc3058948076c53d (patch) | |
tree | 385943f64a7d9bf28693c4ee464d2f245d05602f /indra/newview/llinventoryicon.cpp | |
parent | 344d02af4fd568e5a55e1ed0a1a935fb4718d364 (diff) |
MAINT-8803 Better UI handling of unrecognized inventory items
Diffstat (limited to 'indra/newview/llinventoryicon.cpp')
-rw-r--r-- | indra/newview/llinventoryicon.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/newview/llinventoryicon.cpp b/indra/newview/llinventoryicon.cpp index 495180f087..d0df1c94d5 100644 --- a/indra/newview/llinventoryicon.cpp +++ b/indra/newview/llinventoryicon.cpp @@ -93,6 +93,7 @@ LLIconDictionary::LLIconDictionary() addEntry(LLInventoryType::ICONNAME_MESH, new IconEntry("Inv_Mesh")); addEntry(LLInventoryType::ICONNAME_INVALID, new IconEntry("Inv_Invalid")); + addEntry(LLInventoryType::ICONNAME_UNKNOWN, new IconEntry("Inv_Unknown")); addEntry(LLInventoryType::ICONNAME_NONE, new IconEntry("NONE")); } @@ -166,6 +167,8 @@ const std::string& LLInventoryIcon::getIconName(LLAssetType::EType asset_type, break; case LLAssetType::AT_MESH: idx = LLInventoryType::ICONNAME_MESH; + case LLAssetType::AT_UNKNOWN: + idx = LLInventoryType::ICONNAME_UNKNOWN; default: break; } |