* On an archive load, make the master avatar the owner of all scene objects for now

0.6.0-stable
Justin Clarke Casey 2008-07-14 16:44:50 +00:00
parent 9cb4ba9d6b
commit 177001cdfc
1 changed files with 11 additions and 0 deletions

View File

@ -128,7 +128,18 @@ namespace OpenSim.Region.Environment.Modules.World.Archiver
// TODO: Change object creator/owner here // TODO: Change object creator/owner here
if (null != sceneObject) 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); sceneObjects.Add(sceneObject);
}
} }
m_log.InfoFormat("[ARCHIVER]: Restored {0} scene objects to the scene", sceneObjects.Count); m_log.InfoFormat("[ARCHIVER]: Restored {0} scene objects to the scene", sceneObjects.Count);