diff options
Diffstat (limited to '')
-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 abca14f..2372d6b 100644 --- a/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs +++ b/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs | |||
@@ -1537,51 +1537,6 @@ namespace OpenSim.Region.Framework.Scenes.Serialization | |||
1537 | } | 1537 | } |
1538 | } | 1538 | } |
1539 | 1539 | ||
1540 | //////// Read ///////// | ||
1541 | public static bool Xml2ToSOG(XmlTextReader reader, SceneObjectGroup sog) | ||
1542 | { | ||
1543 | reader.Read(); | ||
1544 | reader.ReadStartElement("SceneObjectGroup"); | ||
1545 | SceneObjectPart root = Xml2ToSOP(reader); | ||
1546 | if (root != null) | ||
1547 | sog.SetRootPart(root); | ||
1548 | else | ||
1549 | { | ||
1550 | return false; | ||
1551 | } | ||
1552 | |||
1553 | if (sog.UUID == UUID.Zero) | ||
1554 | sog.UUID = sog.RootPart.UUID; | ||
1555 | |||
1556 | reader.Read(); // OtherParts | ||
1557 | |||
1558 | while (!reader.EOF) | ||
1559 | { | ||
1560 | switch (reader.NodeType) | ||
1561 | { | ||
1562 | case XmlNodeType.Element: | ||
1563 | if (reader.Name == "SceneObjectPart") | ||
1564 | { | ||
1565 | SceneObjectPart child = Xml2ToSOP(reader); | ||
1566 | if (child != null) | ||
1567 | sog.AddPart(child); | ||
1568 | } | ||
1569 | else | ||
1570 | { | ||
1571 | //Logger.Log("Found unexpected prim XML element " + reader.Name, Helpers.LogLevel.Debug); | ||
1572 | reader.Read(); | ||
1573 | } | ||
1574 | break; | ||
1575 | case XmlNodeType.EndElement: | ||
1576 | default: | ||
1577 | reader.Read(); | ||
1578 | break; | ||
1579 | } | ||
1580 | |||
1581 | } | ||
1582 | return true; | ||
1583 | } | ||
1584 | |||
1585 | public static SceneObjectPart Xml2ToSOP(XmlTextReader reader) | 1540 | public static SceneObjectPart Xml2ToSOP(XmlTextReader reader) |
1586 | { | 1541 | { |
1587 | SceneObjectPart obj = new SceneObjectPart(); | 1542 | SceneObjectPart obj = new SceneObjectPart(); |