diff options
Diffstat (limited to 'OpenSim/Region/CoreModules/World/Archiver')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Archiver/ArchiveReadRequest.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/World/Archiver/ArchiveReadRequest.cs b/OpenSim/Region/CoreModules/World/Archiver/ArchiveReadRequest.cs index 3238a81..d948b82 100644 --- a/OpenSim/Region/CoreModules/World/Archiver/ArchiveReadRequest.cs +++ b/OpenSim/Region/CoreModules/World/Archiver/ArchiveReadRequest.cs | |||
@@ -287,6 +287,23 @@ namespace OpenSim.Region.CoreModules.World.Archiver | |||
287 | // being no copy/no mod for everyone | 287 | // being no copy/no mod for everyone |
288 | lock (part.TaskInventory) | 288 | lock (part.TaskInventory) |
289 | { | 289 | { |
290 | if (!ResolveUserUuid(part.CreatorID)) | ||
291 | part.CreatorID = m_scene.RegionInfo.EstateSettings.EstateOwner; | ||
292 | |||
293 | if (!ResolveUserUuid(part.OwnerID)) | ||
294 | part.OwnerID = m_scene.RegionInfo.EstateSettings.EstateOwner; | ||
295 | |||
296 | if (!ResolveUserUuid(part.LastOwnerID)) | ||
297 | part.LastOwnerID = m_scene.RegionInfo.EstateSettings.EstateOwner; | ||
298 | |||
299 | // And zap any troublesome sit target information | ||
300 | part.SitTargetOrientation = new Quaternion(0, 0, 0, 1); | ||
301 | part.SitTargetPosition = new Vector3(0, 0, 0); | ||
302 | |||
303 | // Fix ownership/creator of inventory items | ||
304 | // Not doing so results in inventory items | ||
305 | // being no copy/no mod for everyone | ||
306 | part.TaskInventory.LockItemsForRead(true); | ||
290 | TaskInventoryDictionary inv = part.TaskInventory; | 307 | TaskInventoryDictionary inv = part.TaskInventory; |
291 | foreach (KeyValuePair<UUID, TaskInventoryItem> kvp in inv) | 308 | foreach (KeyValuePair<UUID, TaskInventoryItem> kvp in inv) |
292 | { | 309 | { |
@@ -302,6 +319,7 @@ namespace OpenSim.Region.CoreModules.World.Archiver | |||
302 | if (UserManager != null) | 319 | if (UserManager != null) |
303 | UserManager.AddUser(kvp.Value.CreatorID, kvp.Value.CreatorData); | 320 | UserManager.AddUser(kvp.Value.CreatorID, kvp.Value.CreatorData); |
304 | } | 321 | } |
322 | part.TaskInventory.LockItemsForRead(false); | ||
305 | } | 323 | } |
306 | } | 324 | } |
307 | 325 | ||