diff options
author | Jacek Antonelli | 2009-09-04 01:56:20 -0500 |
---|---|---|
committer | Jacek Antonelli | 2009-09-04 03:39:51 -0500 |
commit | 89a510de10c48ebcf82b98a962e4bf66477dcc93 (patch) | |
tree | d30f79f433badffe36a67fc155e70a0e29dd2dc4 /linden/indra/newview/llinventorymodel.cpp | |
parent | Backported 1.23 fix for animation joint assertion crash. (diff) | |
download | meta-impy-89a510de10c48ebcf82b98a962e4bf66477dcc93.zip meta-impy-89a510de10c48ebcf82b98a962e4bf66477dcc93.tar.gz meta-impy-89a510de10c48ebcf82b98a962e4bf66477dcc93.tar.bz2 meta-impy-89a510de10c48ebcf82b98a962e4bf66477dcc93.tar.xz |
Applied Kitty Barnett's RLVa 1.0.1h (Restrained Life) patch.
Made a few non-functional changes to help it apply.
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llinventorymodel.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/linden/indra/newview/llinventorymodel.cpp b/linden/indra/newview/llinventorymodel.cpp index 1029a3c..e662058 100644 --- a/linden/indra/newview/llinventorymodel.cpp +++ b/linden/indra/newview/llinventorymodel.cpp | |||
@@ -2876,6 +2876,14 @@ void LLInventoryModel::processSaveAssetIntoInventory(LLMessageSystem* msg, | |||
2876 | llinfos << "LLInventoryModel::processSaveAssetIntoInventory item" | 2876 | llinfos << "LLInventoryModel::processSaveAssetIntoInventory item" |
2877 | " not found: " << item_id << llendl; | 2877 | " not found: " << item_id << llendl; |
2878 | } | 2878 | } |
2879 | |||
2880 | // [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g) | Added: RLVa-0.2.0e | ||
2881 | if (rlv_handler_t::isEnabled()) | ||
2882 | { | ||
2883 | gRlvHandler.onSavedAssetIntoInventory(item_id); | ||
2884 | } | ||
2885 | // [/RLVa:KB] | ||
2886 | |||
2879 | if(gViewerWindow) | 2887 | if(gViewerWindow) |
2880 | { | 2888 | { |
2881 | gViewerWindow->getWindow()->decBusyCount(); | 2889 | gViewerWindow->getWindow()->decBusyCount(); |
@@ -2918,6 +2926,23 @@ void LLInventoryModel::processBulkUpdateInventory(LLMessageSystem* msg, void**) | |||
2918 | // << llendl; | 2926 | // << llendl; |
2919 | if(tfolder->getUUID().notNull()) | 2927 | if(tfolder->getUUID().notNull()) |
2920 | { | 2928 | { |
2929 | // [RLVa:KB] - Checked: 2009-08-07 (RLVa-1.0.1f) | Added: RLVa-1.0.0f | ||
2930 | // TODO-RLVa: this really shouldn't go here, but if the inventory offer spans multiple BulkUpdateInventory messages | ||
2931 | // then the second message will cause the viewer to show the folder under its original name even though | ||
2932 | // it is renamed properly on the inventory server | ||
2933 | if ( (rlv_handler_t::isEnabled()) && (!RlvSettings::getForbidGiveToRLV()) ) | ||
2934 | { | ||
2935 | LLViewerInventoryCategory* pRlvRoot = gRlvHandler.getSharedRoot(); | ||
2936 | std::string strName = tfolder->getName(); | ||
2937 | if ((pRlvRoot) && (pRlvRoot->getUUID() == tfolder->getParentUUID() ) && (strName.find(RLV_PUTINV_PREFIX) == 0)) | ||
2938 | { | ||
2939 | strName.erase(0, strName.find(RLV_FOLDER_PREFIX_PUTINV)); // Strips the prefix while retaining while the '~' | ||
2940 | tfolder->rename(strName); | ||
2941 | tfolder->updateServer(FALSE); | ||
2942 | } | ||
2943 | } | ||
2944 | // [/RLVa:KB] | ||
2945 | |||
2921 | folders.push_back(tfolder); | 2946 | folders.push_back(tfolder); |
2922 | LLViewerInventoryCategory* folderp = gInventory.getCategory(tfolder->getUUID()); | 2947 | LLViewerInventoryCategory* folderp = gInventory.getCategory(tfolder->getUUID()); |
2923 | if(folderp) | 2948 | if(folderp) |