diff options
author | Loren Shih <seraph@lindenlab.com> | 2010-06-07 10:31:50 -0400 |
---|---|---|
committer | Loren Shih <seraph@lindenlab.com> | 2010-06-07 10:31:50 -0400 |
commit | b1e9c9bab085c55bab217a641716a40b8d44ed9e (patch) | |
tree | 1f66e51960d9e96c49030fb61f7547c8e95cc244 /indra/newview/lltooldraganddrop.cpp | |
parent | 82f8be5ca32d60704819b26f0323351d4bbb9b04 (diff) | |
parent | aaf296c2cec420d6f1b3623e1413e71b00cf3966 (diff) |
automated merge
Diffstat (limited to 'indra/newview/lltooldraganddrop.cpp')
-rw-r--r-- | indra/newview/lltooldraganddrop.cpp | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/indra/newview/lltooldraganddrop.cpp b/indra/newview/lltooldraganddrop.cpp index bc77ac5fd1..c862c02b82 100644 --- a/indra/newview/lltooldraganddrop.cpp +++ b/indra/newview/lltooldraganddrop.cpp @@ -1878,24 +1878,7 @@ EAcceptance LLToolDragAndDrop::dad3dWearItem( LLNotificationsUtil::add("CanNotChangeAppearanceUntilLoaded"); return ACCEPT_NO; } - - if (mSource == SOURCE_LIBRARY) - { - // create item based on that one, and put it on if that - // was a success. - LLPointer<LLInventoryCallback> cb = new WearOnAvatarCallback(); - copy_inventory_item( - gAgent.getID(), - item->getPermissions().getOwner(), - item->getUUID(), - LLUUID::null, - std::string(), - cb); - } - else - { - wear_inventory_item_on_avatar( item ); - } + LLAppearanceMgr::instance().wearItemOnAvatar(item->getUUID(),true, !(mask & MASK_CONTROL)); } return ACCEPT_YES_MULTI; } |