diff options
Diffstat (limited to 'OpenSim/Framework/Communications')
-rw-r--r-- | OpenSim/Framework/Communications/Capabilities/Caps.cs | 11 | ||||
-rw-r--r-- | OpenSim/Framework/Communications/InventoryServiceBase.cs | 2 |
2 files changed, 2 insertions, 11 deletions
diff --git a/OpenSim/Framework/Communications/Capabilities/Caps.cs b/OpenSim/Framework/Communications/Capabilities/Caps.cs index 315daab..36bebe8 100644 --- a/OpenSim/Framework/Communications/Capabilities/Caps.cs +++ b/OpenSim/Framework/Communications/Capabilities/Caps.cs | |||
@@ -301,16 +301,7 @@ namespace OpenSim.Region.Capabilities | |||
301 | llsdItem.item_id = invItem.ID; | 301 | llsdItem.item_id = invItem.ID; |
302 | llsdItem.name = invItem.Name; | 302 | llsdItem.name = invItem.Name; |
303 | llsdItem.parent_id = invItem.Folder; | 303 | llsdItem.parent_id = invItem.Folder; |
304 | llsdItem.type = Enum.GetName(typeof(AssetType), invItem.AssetType).ToLower(); | 304 | llsdItem.type = Enum.GetName(typeof(AssetType), invItem.AssetType).ToLower(); |
305 | |||
306 | // XXX Temporary fix for 'objects not appearing in inventory' problem. The asset type from libsecondlife is | ||
307 | // returning "primitive" when it should returning "object"! It looks like this is fixed in the latest libsecondlife, | ||
308 | // but our own libsl1550 doesn't have it either! | ||
309 | if ("primitive".Equals(llsdItem.type)) | ||
310 | { | ||
311 | llsdItem.type = "object"; | ||
312 | } | ||
313 | |||
314 | llsdItem.inv_type = Enum.GetName(typeof(InventoryType), invItem.InvType).ToLower(); | 305 | llsdItem.inv_type = Enum.GetName(typeof(InventoryType), invItem.InvType).ToLower(); |
315 | llsdItem.permissions = new LLSDPermissions(); | 306 | llsdItem.permissions = new LLSDPermissions(); |
316 | llsdItem.permissions.creator_id = invItem.Creator; | 307 | llsdItem.permissions.creator_id = invItem.Creator; |
diff --git a/OpenSim/Framework/Communications/InventoryServiceBase.cs b/OpenSim/Framework/Communications/InventoryServiceBase.cs index 4abfc5a..1250f53 100644 --- a/OpenSim/Framework/Communications/InventoryServiceBase.cs +++ b/OpenSim/Framework/Communications/InventoryServiceBase.cs | |||
@@ -326,7 +326,7 @@ namespace OpenSim.Framework.Communications | |||
326 | folder.AgentID = user; | 326 | folder.AgentID = user; |
327 | folder.ID = LLUUID.Random(); | 327 | folder.ID = LLUUID.Random(); |
328 | folder.Name = "Objects"; | 328 | folder.Name = "Objects"; |
329 | folder.Type = (short)AssetType.Primitive; | 329 | folder.Type = (short)AssetType.Object; |
330 | folder.Version = 1; | 330 | folder.Version = 1; |
331 | Folders.Add(folder.ID, folder); | 331 | Folders.Add(folder.ID, folder); |
332 | 332 | ||