aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs
index 4209e4a..ba638e5 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs
@@ -123,6 +123,28 @@ namespace OpenSim.Region.Environment.Scenes
123 } 123 }
124 } 124 }
125 125
126 public void ChangeInventoryGroup(UUID groupID)
127 {
128 lock (TaskInventory)
129 {
130 if (0 == TaskInventory.Count)
131 {
132 return;
133 }
134
135 HasInventoryChanged = true;
136 ParentGroup.HasGroupChanged = true;
137 IList<TaskInventoryItem> items = new List<TaskInventoryItem>(TaskInventory.Values);
138 foreach (TaskInventoryItem item in items)
139 {
140 if (groupID != item.GroupID)
141 {
142 item.GroupID = groupID;
143 }
144 }
145 }
146 }
147
126 /// <summary> 148 /// <summary>
127 /// Start all the scripts contained in this prim's inventory 149 /// Start all the scripts contained in this prim's inventory
128 /// </summary> 150 /// </summary>