diff options
author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2024-10-09 16:21:58 +0300 |
---|---|---|
committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2024-10-09 17:49:15 +0300 |
commit | 7b6baea0f6c9c4c9a4f69fdbed4d11f0d5a80018 (patch) | |
tree | 53863cb8e620c882a8239df6b4b9ce1b8b1d373e /indra/newview/llinventorybridge.cpp | |
parent | 0f9d2dca38049224d555b725d23008f6e1a6467d (diff) |
viewer#2818 Creating a link to an empty notecard fails #2
Diffstat (limited to 'indra/newview/llinventorybridge.cpp')
-rw-r--r-- | indra/newview/llinventorybridge.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llinventorybridge.cpp b/indra/newview/llinventorybridge.cpp index 57e5030602..114fdf1d9f 100644 --- a/indra/newview/llinventorybridge.cpp +++ b/indra/newview/llinventorybridge.cpp @@ -691,7 +691,9 @@ bool LLInvFVBridge::isClipboardPasteableAsLink() const { return false; } - if (item->getAssetUUID().isNull()) + if (item->getAssetUUID().isNull() + && (item->getActualType() == LLAssetType::AT_NOTECARD + || item->getActualType() == LLAssetType::AT_MATERIAL)) { // otehrwise AIS will return 'Cannot link to items with a NULL asset_id.' return false; |