diff options
author | Melanie Thielker | 2008-11-17 21:44:09 +0000 |
---|---|---|
committer | Melanie Thielker | 2008-11-17 21:44:09 +0000 |
commit | a8e40bed52d9db6d099843ffb796cae266064c14 (patch) | |
tree | 58cdf119d8b13bed007051333937b4f2ab4bf999 /OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs | |
parent | * Remove Appdomain code in XEngine.cs (diff) | |
download | opensim-SC_OLD-a8e40bed52d9db6d099843ffb796cae266064c14.zip opensim-SC_OLD-a8e40bed52d9db6d099843ffb796cae266064c14.tar.gz opensim-SC_OLD-a8e40bed52d9db6d099843ffb796cae266064c14.tar.bz2 opensim-SC_OLD-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.cs | 22 |
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> |