SL-19923 FIXED Unable to drag and drop items from Library in Gallery mode

master
Maxim Nikolenko 2023-06-28 12:38:43 +03:00
parent 4a5ffb70c4
commit 8eade6f074
1 changed files with 10 additions and 0 deletions

View File

@ -36,6 +36,7 @@
#include "llinventoryfunctions.h"
#include "llinventoryicon.h"
#include "llinventorymodel.h"
#include "llinventorymodelbackgroundfetch.h"
#include "llthumbnailctrl.h"
#include "lltextbox.h"
#include "llviewerfoldertype.h"
@ -2240,6 +2241,15 @@ void LLInventoryGalleryItem::setSelected(bool value)
{
mSelected = value;
mTextBgPanel->setBackgroundVisible(value);
if(mSelected)
{
LLViewerInventoryItem* item = gInventory.getItem(mUUID);
if(item && !item->isFinished())
{
LLInventoryModelBackgroundFetch::instance().start(mUUID, false);
}
}
}
BOOL LLInventoryGalleryItem::handleMouseDown(S32 x, S32 y, MASK mask)