diff options
author | Merov Linden <merov@lindenlab.com> | 2011-01-18 11:47:04 -0800 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2011-01-18 11:47:04 -0800 |
commit | b2e4486cf2070e33a9aa6f8cec1a08d93565e52b (patch) | |
tree | ae933341a7cfcf37b1a3226fabf87c7b0eff30bc /indra/newview/llpanelobjectinventory.cpp | |
parent | 6848a2770608ec0949a41687d6006cb39dbccccd (diff) | |
parent | 7f58b4f2928f60f0a93f49c0897f84af3ea8a78b (diff) |
Sync with viewer-beta
Diffstat (limited to 'indra/newview/llpanelobjectinventory.cpp')
-rw-r--r-- | indra/newview/llpanelobjectinventory.cpp | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/indra/newview/llpanelobjectinventory.cpp b/indra/newview/llpanelobjectinventory.cpp index 211b9cf4b1..0b6267c9e6 100644 --- a/indra/newview/llpanelobjectinventory.cpp +++ b/indra/newview/llpanelobjectinventory.cpp @@ -766,22 +766,12 @@ BOOL LLTaskCategoryBridge::startDrag(EDragAndDropType* type, LLUUID* id) const LLViewerObject* object = gObjectList.findObject(mPanel->getTaskUUID()); if(object) { - const LLInventoryItem *inv = dynamic_cast<LLInventoryItem*>(object->getInventoryObject(mUUID)); - if (inv) + const LLInventoryObject* cat = object->getInventoryObject(mUUID); + if ( (cat) && (move_inv_category_world_to_agent(mUUID, LLUUID::null, FALSE)) ) { - const LLPermissions& perm = inv->getPermissions(); - bool can_copy = gAgent.allowOperation(PERM_COPY, perm, - GP_OBJECT_MANIPULATE); - if((can_copy && perm.allowTransferTo(gAgent.getID())) - || object->permYouOwner()) -// || gAgent.isGodlike()) - - { - *type = LLViewerAssetType::lookupDragAndDropType(inv->getType()); - - *id = inv->getUUID(); - return TRUE; - } + *type = LLViewerAssetType::lookupDragAndDropType(cat->getType()); + *id = mUUID; + return TRUE; } } } |