diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs b/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs index a11dc49..0b34156 100644 --- a/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs +++ b/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs | |||
@@ -1424,51 +1424,6 @@ namespace OpenSim.Region.Framework.Scenes.Serialization | |||
1424 | } | 1424 | } |
1425 | } | 1425 | } |
1426 | 1426 | ||
1427 | //////// Read ///////// | ||
1428 | public static bool Xml2ToSOG(XmlTextReader reader, SceneObjectGroup sog) | ||
1429 | { | ||
1430 | reader.Read(); | ||
1431 | reader.ReadStartElement("SceneObjectGroup"); | ||
1432 | SceneObjectPart root = Xml2ToSOP(reader); | ||
1433 | if (root != null) | ||
1434 | sog.SetRootPart(root); | ||
1435 | else | ||
1436 | { | ||
1437 | return false; | ||
1438 | } | ||
1439 | |||
1440 | if (sog.UUID == UUID.Zero) | ||
1441 | sog.UUID = sog.RootPart.UUID; | ||
1442 | |||
1443 | reader.Read(); // OtherParts | ||
1444 | |||
1445 | while (!reader.EOF) | ||
1446 | { | ||
1447 | switch (reader.NodeType) | ||
1448 | { | ||
1449 | case XmlNodeType.Element: | ||
1450 | if (reader.Name == "SceneObjectPart") | ||
1451 | { | ||
1452 | SceneObjectPart child = Xml2ToSOP(reader); | ||
1453 | if (child != null) | ||
1454 | sog.AddPart(child); | ||
1455 | } | ||
1456 | else | ||
1457 | { | ||
1458 | //Logger.Log("Found unexpected prim XML element " + reader.Name, Helpers.LogLevel.Debug); | ||
1459 | reader.Read(); | ||
1460 | } | ||
1461 | break; | ||
1462 | case XmlNodeType.EndElement: | ||
1463 | default: | ||
1464 | reader.Read(); | ||
1465 | break; | ||
1466 | } | ||
1467 | |||
1468 | } | ||
1469 | return true; | ||
1470 | } | ||
1471 | |||
1472 | public static SceneObjectPart Xml2ToSOP(XmlTextReader reader) | 1427 | public static SceneObjectPart Xml2ToSOP(XmlTextReader reader) |
1473 | { | 1428 | { |
1474 | SceneObjectPart obj = new SceneObjectPart(); | 1429 | SceneObjectPart obj = new SceneObjectPart(); |