mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 02:05:34 +08:00
* On an archive load, make the master avatar the owner of all scene objects for now
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user