aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs
diff options
context:
space:
mode:
authorMelanie2012-01-28 04:05:53 +0000
committerMelanie2012-01-28 04:05:53 +0000
commitabffda269f3bdedea7e5e339c120cd2b65b2a36c (patch)
treecb2537156fb9b4d91f5ce61987475f27e2e57f03 /OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs
parentCompletely disable NPC being sensed as agents, the abuse potential is too great (diff)
parentAdd an overloaded SceneObjectPart.UpdateTextureEntry(Primitive.TextureEntry t... (diff)
downloadopensim-SC_OLD-abffda269f3bdedea7e5e339c120cd2b65b2a36c.zip
opensim-SC_OLD-abffda269f3bdedea7e5e339c120cd2b65b2a36c.tar.gz
opensim-SC_OLD-abffda269f3bdedea7e5e339c120cd2b65b2a36c.tar.bz2
opensim-SC_OLD-abffda269f3bdedea7e5e339c120cd2b65b2a36c.tar.xz
Merge branch 'master' into careminster
Conflicts: OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs20
1 files changed, 15 insertions, 5 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs b/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs
index c776fa5..2b0e115 100644
--- a/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs
+++ b/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs
@@ -1205,8 +1205,13 @@ namespace OpenSim.Region.Framework.Scenes.Serialization
1205 writer.WriteElementString("ObjectSaleType", sop.ObjectSaleType.ToString()); 1205 writer.WriteElementString("ObjectSaleType", sop.ObjectSaleType.ToString());
1206 writer.WriteElementString("OwnershipCost", sop.OwnershipCost.ToString()); 1206 writer.WriteElementString("OwnershipCost", sop.OwnershipCost.ToString());
1207 WriteUUID(writer, "GroupID", sop.GroupID, options); 1207 WriteUUID(writer, "GroupID", sop.GroupID, options);
1208 WriteUUID(writer, "OwnerID", sop.OwnerID, options); 1208
1209 WriteUUID(writer, "LastOwnerID", sop.LastOwnerID, options); 1209 UUID ownerID = options.ContainsKey("wipe-owners") ? UUID.Zero : sop.OwnerID;
1210 WriteUUID(writer, "OwnerID", ownerID, options);
1211
1212 UUID lastOwnerID = options.ContainsKey("wipe-owners") ? UUID.Zero : sop.LastOwnerID;
1213 WriteUUID(writer, "LastOwnerID", lastOwnerID, options);
1214
1210 writer.WriteElementString("BaseMask", sop.BaseMask.ToString()); 1215 writer.WriteElementString("BaseMask", sop.BaseMask.ToString());
1211 writer.WriteElementString("OwnerMask", sop.OwnerMask.ToString()); 1216 writer.WriteElementString("OwnerMask", sop.OwnerMask.ToString());
1212 writer.WriteElementString("GroupMask", sop.GroupMask.ToString()); 1217 writer.WriteElementString("GroupMask", sop.GroupMask.ToString());
@@ -1293,7 +1298,6 @@ namespace OpenSim.Region.Framework.Scenes.Serialization
1293 writer.WriteElementString("BasePermissions", item.BasePermissions.ToString()); 1298 writer.WriteElementString("BasePermissions", item.BasePermissions.ToString());
1294 writer.WriteElementString("CreationDate", item.CreationDate.ToString()); 1299 writer.WriteElementString("CreationDate", item.CreationDate.ToString());
1295 1300
1296
1297 WriteUUID(writer, "CreatorID", item.CreatorID, options); 1301 WriteUUID(writer, "CreatorID", item.CreatorID, options);
1298 1302
1299 if (item.CreatorData != null && item.CreatorData != string.Empty) 1303 if (item.CreatorData != null && item.CreatorData != string.Empty)
@@ -1314,10 +1318,16 @@ namespace OpenSim.Region.Framework.Scenes.Serialization
1314 writer.WriteElementString("InvType", item.InvType.ToString()); 1318 writer.WriteElementString("InvType", item.InvType.ToString());
1315 WriteUUID(writer, "ItemID", item.ItemID, options); 1319 WriteUUID(writer, "ItemID", item.ItemID, options);
1316 WriteUUID(writer, "OldItemID", item.OldItemID, options); 1320 WriteUUID(writer, "OldItemID", item.OldItemID, options);
1317 WriteUUID(writer, "LastOwnerID", item.LastOwnerID, options); 1321
1322 UUID lastOwnerID = options.ContainsKey("wipe-owners") ? UUID.Zero : item.LastOwnerID;
1323 WriteUUID(writer, "LastOwnerID", lastOwnerID, options);
1324
1318 writer.WriteElementString("Name", item.Name); 1325 writer.WriteElementString("Name", item.Name);
1319 writer.WriteElementString("NextPermissions", item.NextPermissions.ToString()); 1326 writer.WriteElementString("NextPermissions", item.NextPermissions.ToString());
1320 WriteUUID(writer, "OwnerID", item.OwnerID, options); 1327
1328 UUID ownerID = options.ContainsKey("wipe-owners") ? UUID.Zero : item.OwnerID;
1329 WriteUUID(writer, "OwnerID", ownerID, options);
1330
1321 writer.WriteElementString("CurrentPermissions", item.CurrentPermissions.ToString()); 1331 writer.WriteElementString("CurrentPermissions", item.CurrentPermissions.ToString());
1322 WriteUUID(writer, "ParentID", item.ParentID, options); 1332 WriteUUID(writer, "ParentID", item.ParentID, options);
1323 WriteUUID(writer, "ParentPartID", item.ParentPartID, options); 1333 WriteUUID(writer, "ParentPartID", item.ParentPartID, options);