aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs
diff options
context:
space:
mode:
authorMelanie Thielker2008-11-17 21:44:09 +0000
committerMelanie Thielker2008-11-17 21:44:09 +0000
commita8e40bed52d9db6d099843ffb796cae266064c14 (patch)
tree58cdf119d8b13bed007051333937b4f2ab4bf999 /OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs
parent* Remove Appdomain code in XEngine.cs (diff)
downloadopensim-SC-a8e40bed52d9db6d099843ffb796cae266064c14.zip
opensim-SC-a8e40bed52d9db6d099843ffb796cae266064c14.tar.gz
opensim-SC-a8e40bed52d9db6d099843ffb796cae266064c14.tar.bz2
opensim-SC-a8e40bed52d9db6d099843ffb796cae266064c14.tar.xz
Set group on newly rezzed objects to the rezzer's (or rezzing object's)
group
Diffstat (limited to '')
-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>