What a drag

This commit is contained in:
Lirusaito
2019-02-09 16:51:53 -05:00
parent 2493c401f9
commit 136cffbab9
2 changed files with 6 additions and 0 deletions

View File

@@ -524,6 +524,7 @@ void LLToolDragAndDrop::beginMultiDrag(
void LLToolDragAndDrop::endDrag()
{
mEndDragSignal();
LLSelectMgr::getInstance()->unhighlightAll();
setMouseCapture(FALSE);
}

View File

@@ -50,6 +50,7 @@ class LLPickInfo;
class LLToolDragAndDrop : public LLTool, public LLSingleton<LLToolDragAndDrop>
{
public:
typedef boost::signals2::signal<void ()> enddrag_signal_t;
LLToolDragAndDrop();
// overridden from LLTool
@@ -86,6 +87,8 @@ public:
const LLUUID& getObjectID() const { return mObjectID; }
EAcceptance getLastAccept() { return mLastAccept; }
boost::signals2::connection setEndDragCallback( const enddrag_signal_t::slot_type& cb ) { return mEndDragSignal.connect(cb); }
uuid_vec_t::size_type getCargoIDsCount() const { return mCargoIDs.size(); }
static S32 getOperationId() { return sOperationId; }
@@ -136,6 +139,8 @@ protected:
S32 mCurItemIndex;
std::string mToolTipMsg;
enddrag_signal_t mEndDragSignal;
protected:
// 3d drop functions. these call down into the static functions
// named drop<ThingToDrop> if drop is TRUE and permissions allow