diff options
author | Alexander Gavriliuk <alexandrgproductengine@lindenlab.com> | 2024-01-31 20:28:45 +0100 |
---|---|---|
committer | Guru <alexandrgproductengine@lindenlab.com> | 2024-02-02 04:23:01 +0300 |
commit | 1769dc9a62f86a0a1052046cc36e6592895dbc60 (patch) | |
tree | ddff2e7c3ac6c66c498a6ce1126aac6a373b136d | |
parent | f584d14f7f0d129f2d7e430cf843835bbe23d6f9 (diff) |
GH-141872 Ability to drag Favorites to the Landmarks panel
-rw-r--r-- | indra/newview/lltooldraganddrop.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/indra/newview/lltooldraganddrop.cpp b/indra/newview/lltooldraganddrop.cpp index e7f96239fd..055058e4eb 100644 --- a/indra/newview/lltooldraganddrop.cpp +++ b/indra/newview/lltooldraganddrop.cpp @@ -47,6 +47,7 @@ #include "llinventorybridge.h" #include "llinventorydefines.h" #include "llinventoryfunctions.h" +#include "llinventorymodelbackgroundfetch.h" #include "llpreviewnotecard.h" #include "llrootview.h" #include "llselectmgr.h" @@ -320,6 +321,16 @@ void LLToolDragAndDrop::beginDrag(EDragAndDropType type, LL_WARNS() << "Attempted to start drag without a cargo type" << LL_ENDL; return; } + + if (type != DAD_CATEGORY) + { + LLViewerInventoryItem* item = gInventory.getItem(cargo_id); + if (item && !item->isFinished()) + { + LLInventoryModelBackgroundFetch::instance().start(item->getUUID(), false); + } + } + mCargoTypes.clear(); mCargoTypes.push_back(type); mCargoIDs.clear(); |