diff options
Diffstat (limited to 'OpenSim.Framework')
-rw-r--r-- | OpenSim.Framework/AgentInventory.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/OpenSim.Framework/AgentInventory.cs b/OpenSim.Framework/AgentInventory.cs index 57ee7d9..a3c6cec 100644 --- a/OpenSim.Framework/AgentInventory.cs +++ b/OpenSim.Framework/AgentInventory.cs | |||
@@ -101,6 +101,19 @@ namespace OpenSim.Framework.Inventory | |||
101 | return false; | 101 | return false; |
102 | } | 102 | } |
103 | 103 | ||
104 | public LLUUID GetFolderID(string folderName) | ||
105 | { | ||
106 | foreach (InventoryFolder inv in this.InventoryFolders.Values) | ||
107 | { | ||
108 | if (inv.FolderName == folderName) | ||
109 | { | ||
110 | return inv.FolderID; | ||
111 | } | ||
112 | } | ||
113 | |||
114 | return LLUUID.Zero; | ||
115 | } | ||
116 | |||
104 | public bool UpdateItemAsset(LLUUID itemID, AssetBase asset) | 117 | public bool UpdateItemAsset(LLUUID itemID, AssetBase asset) |
105 | { | 118 | { |
106 | if(this.InventoryItems.ContainsKey(itemID)) | 119 | if(this.InventoryItems.ContainsKey(itemID)) |