diff options
author | Cosmic Linden <cosmic@lindenlab.com> | 2023-07-21 17:32:08 -0700 |
---|---|---|
committer | Cosmic Linden <cosmic@lindenlab.com> | 2023-07-27 14:44:32 -0700 |
commit | 5a706086fefa6058389dc35707fc6b0c8ccece2d (patch) | |
tree | 06970e34b3618478245092a111caa837236fcec6 /indra | |
parent | 5e344813dc9bb4e5ecb8187642f97377c157955f (diff) |
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.
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/lltexturectrl.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/lltexturectrl.cpp b/indra/newview/lltexturectrl.cpp index b3310a1f9a..c13376d0a6 100644 --- a/indra/newview/lltexturectrl.cpp +++ b/indra/newview/lltexturectrl.cpp @@ -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); |