From 177001cdfc3d2d720b41b815a465eecc11391074 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Mon, 14 Jul 2008 16:44:50 +0000 Subject: * On an archive load, make the master avatar the owner of all scene objects for now --- .../Environment/Modules/World/Archiver/ArchiveReadRequest.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'OpenSim') diff --git a/OpenSim/Region/Environment/Modules/World/Archiver/ArchiveReadRequest.cs b/OpenSim/Region/Environment/Modules/World/Archiver/ArchiveReadRequest.cs index fbda830..f5496b9 100644 --- a/OpenSim/Region/Environment/Modules/World/Archiver/ArchiveReadRequest.cs +++ b/OpenSim/Region/Environment/Modules/World/Archiver/ArchiveReadRequest.cs @@ -128,7 +128,18 @@ namespace OpenSim.Region.Environment.Modules.World.Archiver // TODO: Change object creator/owner here if (null != sceneObject) + { + // Make the master the owner/creator of everything imported for now + LLUUID masterAvatarId = m_scene.RegionInfo.MasterAvatarAssignedUUID; + foreach (SceneObjectPart part in sceneObject.Children.Values) + { + part.CreatorID = masterAvatarId; + part.OwnerID = masterAvatarId; + part.LastOwnerID = masterAvatarId; + } + sceneObjects.Add(sceneObject); + } } m_log.InfoFormat("[ARCHIVER]: Restored {0} scene objects to the scene", sceneObjects.Count); -- cgit v1.1