diff options
author | Justin Clarke Casey | 2008-06-23 18:01:58 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-06-23 18:01:58 +0000 |
commit | de243802334c44967273be2d1455a5f191f75955 (patch) | |
tree | 7228d224717ff5b5c021161225ac9f4e46b39174 /OpenSim/Framework/AgentInventory.cs | |
parent | add migration to go from varchar -> char for uuid. Tested (diff) | |
download | opensim-SC-de243802334c44967273be2d1455a5f191f75955.zip opensim-SC-de243802334c44967273be2d1455a5f191f75955.tar.gz opensim-SC-de243802334c44967273be2d1455a5f191f75955.tar.bz2 opensim-SC-de243802334c44967273be2d1455a5f191f75955.tar.xz |
* Remove all use of asset.InvType, as outlined in mailing list discussion
* This is stage 1, the field will be removed from AssetType and the assets table if this change doesn't prove problematic
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/AgentInventory.cs | 53 |
1 files changed, 27 insertions, 26 deletions
diff --git a/OpenSim/Framework/AgentInventory.cs b/OpenSim/Framework/AgentInventory.cs index 61e8636..e3f078b 100644 --- a/OpenSim/Framework/AgentInventory.cs +++ b/OpenSim/Framework/AgentInventory.cs | |||
@@ -157,31 +157,32 @@ namespace OpenSim.Framework | |||
157 | return true; | 157 | return true; |
158 | } | 158 | } |
159 | 159 | ||
160 | public LLUUID AddToInventory(LLUUID folderID, AssetBase asset) | 160 | // FIXME: Unused, pending possible cleanup for this whole class. |
161 | { | 161 | // public LLUUID AddToInventory(LLUUID folderID, AssetBase asset) |
162 | if (InventoryFolders.ContainsKey(folderID)) | 162 | // { |
163 | { | 163 | // if (InventoryFolders.ContainsKey(folderID)) |
164 | LLUUID NewItemID = LLUUID.Random(); | 164 | // { |
165 | 165 | // LLUUID NewItemID = LLUUID.Random(); | |
166 | InventoryItem Item = new InventoryItem(); | 166 | // |
167 | Item.FolderID = folderID; | 167 | // InventoryItem Item = new InventoryItem(); |
168 | Item.OwnerID = AgentID; | 168 | // Item.FolderID = folderID; |
169 | Item.AssetID = asset.FullID; | 169 | // Item.OwnerID = AgentID; |
170 | Item.ItemID = NewItemID; | 170 | // Item.AssetID = asset.FullID; |
171 | Item.Type = asset.Type; | 171 | // Item.ItemID = NewItemID; |
172 | Item.Name = asset.Name; | 172 | // Item.Type = asset.Type; |
173 | Item.Description = asset.Description; | 173 | // Item.Name = asset.Name; |
174 | Item.InvType = asset.InvType; | 174 | // Item.Description = asset.Description; |
175 | InventoryItems.Add(Item.ItemID, Item); | 175 | // Item.InvType = asset.InvType; |
176 | InventoryFolder Folder = InventoryFolders[Item.FolderID]; | 176 | // InventoryItems.Add(Item.ItemID, Item); |
177 | Folder.Items.Add(Item); | 177 | // InventoryFolder Folder = InventoryFolders[Item.FolderID]; |
178 | return (Item.ItemID); | 178 | // Folder.Items.Add(Item); |
179 | } | 179 | // return (Item.ItemID); |
180 | else | 180 | // } |
181 | { | 181 | // else |
182 | return (null); | 182 | // { |
183 | } | 183 | // return (null); |
184 | } | 184 | // } |
185 | // } | ||
185 | 186 | ||
186 | public bool DeleteFromInventory(LLUUID itemID) | 187 | public bool DeleteFromInventory(LLUUID itemID) |
187 | { | 188 | { |
@@ -252,4 +253,4 @@ namespace OpenSim.Framework | |||
252 | return result; | 253 | return result; |
253 | } | 254 | } |
254 | } | 255 | } |
255 | } \ No newline at end of file | 256 | } |