aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-07-14 16:44:50 +0000
committerJustin Clarke Casey2008-07-14 16:44:50 +0000
commit177001cdfc3d2d720b41b815a465eecc11391074 (patch)
tree055dc284fe836b6256cbec711f1f0ed2c1d76da5 /OpenSim
parent* For now, when loading an archive all the existing scene objects get deleted... (diff)
downloadopensim-SC_OLD-177001cdfc3d2d720b41b815a465eecc11391074.zip
opensim-SC_OLD-177001cdfc3d2d720b41b815a465eecc11391074.tar.gz
opensim-SC_OLD-177001cdfc3d2d720b41b815a465eecc11391074.tar.bz2
opensim-SC_OLD-177001cdfc3d2d720b41b815a465eecc11391074.tar.xz
* On an archive load, make the master avatar the owner of all scene objects for now
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);