diff options
Diffstat (limited to 'OpenSim/Region/CoreModules/Framework')
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs b/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs index 0f2b9a6..5d19025 100644 --- a/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs +++ b/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs | |||
@@ -298,17 +298,16 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess | |||
298 | Utils.StringToBytes(itemXml), | 298 | Utils.StringToBytes(itemXml), |
299 | objlist[0].OwnerID.ToString()); | 299 | objlist[0].OwnerID.ToString()); |
300 | m_Scene.AssetService.Store(asset); | 300 | m_Scene.AssetService.Store(asset); |
301 | assetID = asset.FullID; | 301 | |
302 | item.AssetID = asset.FullID; | ||
303 | assetID = asset.FullID; | ||
302 | 304 | ||
303 | if (DeRezAction.SaveToExistingUserInventoryItem == action) | 305 | if (DeRezAction.SaveToExistingUserInventoryItem == action) |
304 | { | 306 | { |
305 | item.AssetID = asset.FullID; | ||
306 | m_Scene.InventoryService.UpdateItem(item); | 307 | m_Scene.InventoryService.UpdateItem(item); |
307 | } | 308 | } |
308 | else | 309 | else |
309 | { | 310 | { |
310 | item.AssetID = asset.FullID; | ||
311 | |||
312 | uint effectivePerms = (uint)(PermissionMask.Copy | PermissionMask.Transfer | PermissionMask.Modify | PermissionMask.Move) | 7; | 311 | uint effectivePerms = (uint)(PermissionMask.Copy | PermissionMask.Transfer | PermissionMask.Modify | PermissionMask.Move) | 7; |
313 | foreach (SceneObjectGroup grp in objlist) | 312 | foreach (SceneObjectGroup grp in objlist) |
314 | effectivePerms &= grp.GetEffectivePermissions(); | 313 | effectivePerms &= grp.GetEffectivePermissions(); |