DRTVWR-397 WIP - removed get_linked_uuid(), duplicate of gInventory.getLinkedItemID()
parent
6ac9852d54
commit
0350e04e6e
|
|
@ -2652,7 +2652,7 @@ LLInventoryModel::item_array_t LLAppearanceMgr::findCOFItemLinks(const LLUUID& i
|
|||
{
|
||||
LLInventoryModel::item_array_t result;
|
||||
|
||||
LLUUID linked_id = get_linked_uuid(item_id);
|
||||
LLUUID linked_id = gInventory.getLinkedItemID(item_id);
|
||||
LLInventoryModel::cat_array_t cat_array;
|
||||
LLInventoryModel::item_array_t item_array;
|
||||
gInventory.collectDescendents(LLAppearanceMgr::getCOF(),
|
||||
|
|
|
|||
|
|
@ -249,7 +249,7 @@ void LLGestureMgr::activateGestureWithAsset(const LLUUID& item_id,
|
|||
BOOL inform_server,
|
||||
BOOL deactivate_similar)
|
||||
{
|
||||
const LLUUID& base_item_id = get_linked_uuid(item_id);
|
||||
const LLUUID& base_item_id = gInventory.getLinkedItemID(item_id);
|
||||
|
||||
if( !gAssetStorage )
|
||||
{
|
||||
|
|
@ -303,7 +303,7 @@ void notify_update_label(const LLUUID& base_item_id)
|
|||
|
||||
void LLGestureMgr::deactivateGesture(const LLUUID& item_id)
|
||||
{
|
||||
const LLUUID& base_item_id = get_linked_uuid(item_id);
|
||||
const LLUUID& base_item_id = gInventory.getLinkedItemID(item_id);
|
||||
item_map_t::iterator it = mActive.find(base_item_id);
|
||||
if (it == mActive.end())
|
||||
{
|
||||
|
|
@ -349,7 +349,7 @@ void LLGestureMgr::deactivateGesture(const LLUUID& item_id)
|
|||
|
||||
void LLGestureMgr::deactivateSimilarGestures(LLMultiGesture* in, const LLUUID& in_item_id)
|
||||
{
|
||||
const LLUUID& base_in_item_id = get_linked_uuid(in_item_id);
|
||||
const LLUUID& base_in_item_id = gInventory.getLinkedItemID(in_item_id);
|
||||
uuid_vec_t gest_item_ids;
|
||||
|
||||
// Deactivate all gestures that match
|
||||
|
|
@ -436,7 +436,7 @@ void LLGestureMgr::deactivateSimilarGestures(LLMultiGesture* in, const LLUUID& i
|
|||
|
||||
BOOL LLGestureMgr::isGestureActive(const LLUUID& item_id)
|
||||
{
|
||||
const LLUUID& base_item_id = get_linked_uuid(item_id);
|
||||
const LLUUID& base_item_id = gInventory.getLinkedItemID(item_id);
|
||||
item_map_t::iterator it = mActive.find(base_item_id);
|
||||
return (it != mActive.end());
|
||||
}
|
||||
|
|
@ -444,7 +444,7 @@ BOOL LLGestureMgr::isGestureActive(const LLUUID& item_id)
|
|||
|
||||
BOOL LLGestureMgr::isGesturePlaying(const LLUUID& item_id)
|
||||
{
|
||||
const LLUUID& base_item_id = get_linked_uuid(item_id);
|
||||
const LLUUID& base_item_id = gInventory.getLinkedItemID(item_id);
|
||||
|
||||
item_map_t::iterator it = mActive.find(base_item_id);
|
||||
if (it == mActive.end()) return FALSE;
|
||||
|
|
@ -467,7 +467,7 @@ BOOL LLGestureMgr::isGesturePlaying(LLMultiGesture* gesture)
|
|||
|
||||
void LLGestureMgr::replaceGesture(const LLUUID& item_id, LLMultiGesture* new_gesture, const LLUUID& asset_id)
|
||||
{
|
||||
const LLUUID& base_item_id = get_linked_uuid(item_id);
|
||||
const LLUUID& base_item_id = gInventory.getLinkedItemID(item_id);
|
||||
|
||||
item_map_t::iterator it = mActive.find(base_item_id);
|
||||
if (it == mActive.end())
|
||||
|
|
@ -509,7 +509,7 @@ void LLGestureMgr::replaceGesture(const LLUUID& item_id, LLMultiGesture* new_ges
|
|||
|
||||
void LLGestureMgr::replaceGesture(const LLUUID& item_id, const LLUUID& new_asset_id)
|
||||
{
|
||||
const LLUUID& base_item_id = get_linked_uuid(item_id);
|
||||
const LLUUID& base_item_id = gInventory.getLinkedItemID(item_id);
|
||||
|
||||
item_map_t::iterator it = LLGestureMgr::instance().mActive.find(base_item_id);
|
||||
if (it == mActive.end())
|
||||
|
|
@ -604,7 +604,7 @@ void LLGestureMgr::playGesture(LLMultiGesture* gesture)
|
|||
// Convenience function that looks up the item_id for you.
|
||||
void LLGestureMgr::playGesture(const LLUUID& item_id)
|
||||
{
|
||||
const LLUUID& base_item_id = get_linked_uuid(item_id);
|
||||
const LLUUID& base_item_id = gInventory.getLinkedItemID(item_id);
|
||||
|
||||
item_map_t::iterator it = mActive.find(base_item_id);
|
||||
if (it == mActive.end()) return;
|
||||
|
|
@ -1293,7 +1293,7 @@ void LLGestureMgr::stopGesture(LLMultiGesture* gesture)
|
|||
|
||||
void LLGestureMgr::stopGesture(const LLUUID& item_id)
|
||||
{
|
||||
const LLUUID& base_item_id = get_linked_uuid(item_id);
|
||||
const LLUUID& base_item_id = gInventory.getLinkedItemID(item_id);
|
||||
|
||||
item_map_t::iterator it = mActive.find(base_item_id);
|
||||
if (it == mActive.end()) return;
|
||||
|
|
|
|||
|
|
@ -2306,13 +2306,3 @@ BOOL LLViewerInventoryItem::regenerateLink()
|
|||
gInventory.notifyObservers();
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
const LLUUID& get_linked_uuid(const LLUUID &item_id)
|
||||
{
|
||||
LLViewerInventoryItem* item = gInventory.getItem(item_id);
|
||||
if (item && item->getIsLinkType())
|
||||
{
|
||||
return item->getLinkedUUID();
|
||||
}
|
||||
return item_id;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -435,8 +435,4 @@ void slam_inventory_folder(const LLUUID& folder_id,
|
|||
void remove_folder_contents(const LLUUID& folder_id, bool keep_outfit_links,
|
||||
LLPointer<LLInventoryCallback> cb);
|
||||
|
||||
// If item is in the InventoryModel and is a link, get the item
|
||||
// that this link points to. Otherwise just return this id.
|
||||
const LLUUID& get_linked_uuid(const LLUUID &item_id);
|
||||
|
||||
#endif // LL_LLVIEWERINVENTORY_H
|
||||
|
|
|
|||
Loading…
Reference in New Issue