aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/Environment/Modules/World/Archiver/ArchiveReadRequest.cs11
1 files changed, 11 insertions, 0 deletions
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
128 // TODO: Change object creator/owner here 128 // TODO: Change object creator/owner here
129 129
130 if (null != sceneObject) 130 if (null != sceneObject)
131 {
132 // Make the master the owner/creator of everything imported for now
133 LLUUID masterAvatarId = m_scene.RegionInfo.MasterAvatarAssignedUUID;
134 foreach (SceneObjectPart part in sceneObject.Children.Values)
135 {
136 part.CreatorID = masterAvatarId;
137 part.OwnerID = masterAvatarId;
138 part.LastOwnerID = masterAvatarId;
139 }
140
131 sceneObjects.Add(sceneObject); 141 sceneObjects.Add(sceneObject);
142 }
132 } 143 }
133 144
134 m_log.InfoFormat("[ARCHIVER]: Restored {0} scene objects to the scene", sceneObjects.Count); 145 m_log.InfoFormat("[ARCHIVER]: Restored {0} scene objects to the scene", sceneObjects.Count);