aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs
diff options
context:
space:
mode:
authorAdam Frisby2008-04-23 13:22:06 +0000
committerAdam Frisby2008-04-23 13:22:06 +0000
commite456cb7533dff72aa22a87f261a758e294e707b1 (patch)
tree8cc321c8b4438acd298bb756768ba124feb09661 /OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs
parent* Patch #1026 - llDialog support -- Thanks Melanie! (diff)
downloadopensim-SC_OLD-e456cb7533dff72aa22a87f261a758e294e707b1.zip
opensim-SC_OLD-e456cb7533dff72aa22a87f261a758e294e707b1.tar.gz
opensim-SC_OLD-e456cb7533dff72aa22a87f261a758e294e707b1.tar.bz2
opensim-SC_OLD-e456cb7533dff72aa22a87f261a758e294e707b1.tar.xz
* Patch for #973 - Object Rez from Inventory ignores permissions - Thanks tglion!
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs25
1 files changed, 25 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs
index 9b99df7..6e815a6 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs
@@ -115,6 +115,31 @@ namespace OpenSim.Region.Environment.Scenes
115 } 115 }
116 } 116 }
117 117
118 public void ChangeInventoryOwner(LLUUID ownerId)
119 {
120 lock (TaskInventory)
121 {
122 if (0 == TaskInventory.Count)
123 {
124 return;
125 }
126
127 HasInventoryChanged = true;
128
129 IList<TaskInventoryItem> items = new List<TaskInventoryItem>(TaskInventory.Values);
130 foreach (TaskInventoryItem item in items)
131 {
132 if (ownerId != item.OwnerID)
133 {
134 item.LastOwnerID = item.OwnerID;
135 item.OwnerID = ownerId;
136 item.BaseMask = item.NextOwnerMask & (uint)PermissionMask.All;
137 item.OwnerMask = item.NextOwnerMask & (uint)PermissionMask.All;
138 }
139 }
140 }
141 }
142
118 /// <summary> 143 /// <summary>
119 /// Start all the scripts contained in this prim's inventory 144 /// Start all the scripts contained in this prim's inventory
120 /// </summary> 145 /// </summary>