diff options
author | Steven Bennetts <steve@lindenlab.com> | 2008-04-01 17:45:04 +0000 |
---|---|---|
committer | Steven Bennetts <steve@lindenlab.com> | 2008-04-01 17:45:04 +0000 |
commit | 941cb9f4124c9ccfd5c845bc94639fa46df12c3d (patch) | |
tree | e0f525e7bd6cc76d89b2df69c6f1554d191561e8 /indra/newview/llpreview.cpp | |
parent | ecec626dec93524f7ef5831a5ba344d6449b99bc (diff) |
merge release@83343 skinning-1-merge@83714 -> release
QAR-424
Diffstat (limited to 'indra/newview/llpreview.cpp')
-rw-r--r-- | indra/newview/llpreview.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/indra/newview/llpreview.cpp b/indra/newview/llpreview.cpp index cad38e36ff..d5f91596e8 100644 --- a/indra/newview/llpreview.cpp +++ b/indra/newview/llpreview.cpp @@ -231,11 +231,11 @@ void LLPreview::onCommit() LLViewerObject* obj = avatar->getWornAttachment( item->getUUID() ); if( obj ) { - gSelectMgr->deselectAll(); - gSelectMgr->addAsIndividual( obj, SELECT_ALL_TES, FALSE ); - gSelectMgr->selectionSetObjectDescription( childGetText("desc") ); + LLSelectMgr::getInstance()->deselectAll(); + LLSelectMgr::getInstance()->addAsIndividual( obj, SELECT_ALL_TES, FALSE ); + LLSelectMgr::getInstance()->selectionSetObjectDescription( childGetText("desc") ); - gSelectMgr->deselectAll(); + LLSelectMgr::getInstance()->deselectAll(); } } } @@ -374,7 +374,7 @@ BOOL LLPreview::handleMouseDown(S32 x, S32 y, MASK mask) S32 screen_x; S32 screen_y; localPointToScreen(x, y, &screen_x, &screen_y ); - gToolDragAndDrop->setDragStart(screen_x, screen_y); + LLToolDragAndDrop::getInstance()->setDragStart(screen_x, screen_y); return TRUE; } return LLFloater::handleMouseDown(x, y, mask); @@ -402,7 +402,7 @@ BOOL LLPreview::handleHover(S32 x, S32 y, MASK mask) if(item && item->getPermissions().allowCopyBy(gAgent.getID(), gAgent.getGroupID()) - && gToolDragAndDrop->isOverThreshold(screen_x, screen_y)) + && LLToolDragAndDrop::getInstance()->isOverThreshold(screen_x, screen_y)) { EDragAndDropType type; type = LLAssetType::lookupDragAndDropType(item->getType()); @@ -415,11 +415,11 @@ BOOL LLPreview::handleHover(S32 x, S32 y, MASK mask) { src = LLToolDragAndDrop::SOURCE_AGENT; } - gToolDragAndDrop->beginDrag(type, + LLToolDragAndDrop::getInstance()->beginDrag(type, item->getUUID(), src, mObjectUUID); - return gToolDragAndDrop->handleHover(x, y, mask ); + return LLToolDragAndDrop::getInstance()->handleHover(x, y, mask ); } } return LLFloater::handleHover(x,y,mask); |