diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2023-02-01 01:33:30 +0200 |
---|---|---|
committer | akleshchev <117672381+akleshchev@users.noreply.github.com> | 2023-02-01 16:38:47 +0200 |
commit | 999c8cd3b92cdc64549167a261c8c629edc03c55 (patch) | |
tree | f8d0d25345e84b11a84357bcb0e40fb9aa0297ab /indra/newview/llinventorybridge.cpp | |
parent | 6ada89ce0b9372d6a7f49ac45bad6713ad5d3355 (diff) |
SL-19117 Textures should return asset id when thumbnail is not set
Diffstat (limited to 'indra/newview/llinventorybridge.cpp')
-rw-r--r-- | indra/newview/llinventorybridge.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/indra/newview/llinventorybridge.cpp b/indra/newview/llinventorybridge.cpp index 7793b71f56..405c1f884a 100644 --- a/indra/newview/llinventorybridge.cpp +++ b/indra/newview/llinventorybridge.cpp @@ -2154,6 +2154,21 @@ LLViewerInventoryItem* LLItemBridge::getItem() const return item; } +const LLUUID& LLItemBridge::getThumbnailUUID() const +{ + LLViewerInventoryItem* item = NULL; + LLInventoryModel* model = getInventoryModel(); + if(model) + { + item = (LLViewerInventoryItem*)model->getItem(mUUID); + } + if (item) + { + return item->getThumbnailUUID(); + } + return LLUUID::null; +} + BOOL LLItemBridge::isItemPermissive() const { LLViewerInventoryItem* item = getItem(); |