diff options
author | Justin Clark-Casey (justincc) | 2012-05-16 00:10:42 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-05-16 00:10:42 +0100 |
commit | 23ae24b4061f7c1e1bc1c0d5428374ccf4e25891 (patch) | |
tree | f850abd0af240f647d5e563e0f36c8cb98c954dd /OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs | |
parent | Merge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff) | |
download | opensim-SC-23ae24b4061f7c1e1bc1c0d5428374ccf4e25891.zip opensim-SC-23ae24b4061f7c1e1bc1c0d5428374ccf4e25891.tar.gz opensim-SC-23ae24b4061f7c1e1bc1c0d5428374ccf4e25891.tar.bz2 opensim-SC-23ae24b4061f7c1e1bc1c0d5428374ccf4e25891.tar.xz |
Route OAR SOG loading through the common SceneObjectSerializer.FromXml2Format() rather than the functionally identical but buggy Xml2ToSOG().
Remove buggy Xml2ToSOG().
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 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(); |