* minor: rename xml sog serialization method for readability
parent
032e3b49eb
commit
fcfc97a4bf
|
@ -255,7 +255,7 @@ namespace OpenSim.Region.Framework.Scenes.Hypergrid
|
|||
if ((asset != null) && ((AssetType)asset.Type == AssetType.Object))
|
||||
{
|
||||
string ass_str = Utils.BytesToString(asset.Data);
|
||||
SceneObjectGroup sog = SceneObjectSerializer.DeserializeOriginalXmlFormat(ass_str);
|
||||
SceneObjectGroup sog = SceneObjectSerializer.FromOriginalXmlFormat(ass_str);
|
||||
|
||||
SniffTextureUUIDs(uuids, sog);
|
||||
|
||||
|
|
|
@ -2265,7 +2265,7 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
|
||||
string xmlData = Utils.BytesToString(rezAsset.Data);
|
||||
SceneObjectGroup group
|
||||
= SceneObjectSerializer.DeserializeOriginalXmlFormat(itemId, xmlData);
|
||||
= SceneObjectSerializer.FromOriginalXmlFormat(itemId, xmlData);
|
||||
|
||||
if (!Permissions.CanRezObject(
|
||||
group.Children.Count, remoteClient.AgentId, pos)
|
||||
|
@ -2421,7 +2421,7 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
if (rezAsset != null)
|
||||
{
|
||||
string xmlData = Utils.BytesToString(rezAsset.Data);
|
||||
SceneObjectGroup group = SceneObjectSerializer.DeserializeOriginalXmlFormat(xmlData);
|
||||
SceneObjectGroup group = SceneObjectSerializer.FromOriginalXmlFormat(xmlData);
|
||||
|
||||
if (!Permissions.CanRezObject(group.Children.Count, ownerID, pos))
|
||||
{
|
||||
|
|
|
@ -59,7 +59,7 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
rootNode = doc.FirstChild;
|
||||
foreach (XmlNode aPrimNode in rootNode.ChildNodes)
|
||||
{
|
||||
SceneObjectGroup obj = SceneObjectSerializer.DeserializeOriginalXmlFormat(aPrimNode.OuterXml);
|
||||
SceneObjectGroup obj = SceneObjectSerializer.FromOriginalXmlFormat(aPrimNode.OuterXml);
|
||||
|
||||
if (newIDS)
|
||||
{
|
||||
|
|
|
@ -49,9 +49,9 @@ namespace OpenSim.Region.Framework.Scenes.Serialization
|
|||
/// </summary>
|
||||
/// <param name="serialization"></param>
|
||||
/// <returns></returns>
|
||||
public static SceneObjectGroup DeserializeOriginalXmlFormat(string serialization)
|
||||
public static SceneObjectGroup FromOriginalXmlFormat(string serialization)
|
||||
{
|
||||
return DeserializeOriginalXmlFormat(UUID.Zero, serialization);
|
||||
return FromOriginalXmlFormat(UUID.Zero, serialization);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -59,7 +59,7 @@ namespace OpenSim.Region.Framework.Scenes.Serialization
|
|||
/// </summary>
|
||||
/// <param name="serialization"></param>
|
||||
/// <returns></returns>
|
||||
public static SceneObjectGroup DeserializeOriginalXmlFormat(UUID fromUserInventoryItemID, string serialization)
|
||||
public static SceneObjectGroup FromOriginalXmlFormat(UUID fromUserInventoryItemID, string serialization)
|
||||
{
|
||||
//m_log.DebugFormat("[SOG]: Starting deserialization of SOG");
|
||||
//int time = System.Environment.TickCount;
|
||||
|
|
|
@ -264,7 +264,7 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
if (null != objectAsset)
|
||||
{
|
||||
string xml = Utils.BytesToString(objectAsset.Data);
|
||||
SceneObjectGroup sog = SceneObjectSerializer.DeserializeOriginalXmlFormat(xml);
|
||||
SceneObjectGroup sog = SceneObjectSerializer.FromOriginalXmlFormat(xml);
|
||||
GatherAssetUuids(sog, assetUuids);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue