diff options
Diffstat (limited to 'indra/newview')
| -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(); | 
