SL-20053: Fix sometimes unable to unset a PBR material on a prim.

Caused by inventory item asset IDs being null. Seems suspicious. But working around it for now seems best.
meow-7.2.2
Cosmic Linden 2023-07-21 17:32:08 -07:00
parent 5e344813dc
commit 5a706086fe
1 changed files with 5 additions and 0 deletions

View File

@ -693,6 +693,11 @@ void LLFloaterTexturePicker::draw()
const LLUUID& LLFloaterTexturePicker::findItemID(const LLUUID& asset_id, BOOL copyable_only, BOOL ignore_library)
{
if (asset_id.isNull())
{
return LLUUID::null;
}
LLViewerInventoryCategory::cat_array_t cats;
LLViewerInventoryItem::item_array_t items;
LLAssetIDMatches asset_id_matches(asset_id);