Fixes the issue of hung archives. Problem was with SceneObjectSerializer.

Also fixes a buglet in scene load xml command, where it was given the wrong argument index for filename.
viewer-2-initial-appearance
Diva Canto 2011-01-08 15:49:51 -08:00
parent a1c5de0f94
commit eab0951a59
2 changed files with 13 additions and 1 deletions

View File

@ -1146,7 +1146,7 @@ namespace OpenSim
MainConsole.Instance.Output(String.Format("loadOffsets <X,Y,Z> = <{0},{1},{2}>",loadOffset.X,loadOffset.Y,loadOffset.Z));
}
}
m_sceneManager.LoadCurrentSceneFromXml(cmdparams[0], generateNewIDS, loadOffset);
m_sceneManager.LoadCurrentSceneFromXml(cmdparams[2], generateNewIDS, loadOffset);
}
else
{

View File

@ -1441,6 +1441,12 @@ namespace OpenSim.Region.Framework.Scenes.Serialization
{
TaskInventoryDictionary tinv = new TaskInventoryDictionary();
if (reader.IsEmptyElement)
{
reader.Read();
return tinv;
}
reader.ReadStartElement(name, String.Empty);
while (reader.Name == "TaskInventoryItem")
@ -1474,6 +1480,12 @@ namespace OpenSim.Region.Framework.Scenes.Serialization
{
PrimitiveBaseShape shape = new PrimitiveBaseShape();
if (reader.IsEmptyElement)
{
reader.Read();
return shape;
}
reader.ReadStartElement(name, String.Empty); // Shape
string nodeName = string.Empty;