From: Alan Webb <alan_webb@us.ibm.com>

Cleanup tabs and spacing.
0.6.5-rc1
Dr Scofield 2009-04-23 14:38:55 +00:00
parent 4b7a208559
commit 07b435b2b9
2 changed files with 70 additions and 70 deletions

View File

@ -453,7 +453,7 @@ namespace OpenSim.Region.Framework.Scenes
doc.LoadXml(xmlData);
parts = doc.GetElementsByTagName("RootPart");
if(parts.Count == 0)
if (parts.Count == 0)
{
throw new Exception("[SCENE] Invalid Xml format - no root part");
}
@ -527,7 +527,7 @@ namespace OpenSim.Region.Framework.Scenes
XmlNodeList parts = doc.GetElementsByTagName("SceneObjectPart");
// Process the root part first
if(parts.Count > 0)
if (parts.Count > 0)
{
StringReader sr = new StringReader(parts[0].OuterXml);
XmlTextReader reader = new XmlTextReader(sr);
@ -537,7 +537,7 @@ namespace OpenSim.Region.Framework.Scenes
}
// Then deal with the rest
for(int i=1; i<parts.Count; i++)
for (int i=1; i<parts.Count; i++)
{
StringReader sr = new StringReader(parts[i].OuterXml);
XmlTextReader reader = new XmlTextReader(sr);
@ -588,12 +588,12 @@ namespace OpenSim.Region.Framework.Scenes
private void LoadScriptState(XmlDocument doc)
{
XmlNodeList nodes = doc.GetElementsByTagName("SavedScriptState");
if(nodes.Count > 0)
if (nodes.Count > 0)
{
m_savedScriptState = new Dictionary<UUID, string>();
foreach(XmlNode node in nodes)
foreach (XmlNode node in nodes)
{
if(node.Attributes["UUID"] != null)
if (node.Attributes["UUID"] != null)
{
UUID itemid = new UUID(node.Attributes["UUID"].Value);
m_savedScriptState.Add(itemid, node.InnerXml);
@ -851,11 +851,11 @@ namespace OpenSim.Region.Framework.Scenes
}
}
if(states.Count > 0)
if (states.Count > 0)
{
// Now generate the necessary XML wrappings
writer.WriteStartElement(String.Empty, "GroupScriptStates", String.Empty);
foreach(UUID itemid in states.Keys)
foreach (UUID itemid in states.Keys)
{
doc.LoadXml(states[itemid]);
writer.WriteStartElement(String.Empty, "SavedScriptState", String.Empty);

View File

@ -265,7 +265,7 @@ namespace OpenSim.Region.Framework.Scenes
}
else
{
if(m_part.ParentGroup.m_savedScriptState != null)
if (m_part.ParentGroup.m_savedScriptState != null)
RestoreSavedScriptState(item.OldItemID, item.ItemID);
m_items[item.ItemID].PermsMask = 0;
m_items[item.ItemID].PermsGranter = UUID.Zero;
@ -283,7 +283,7 @@ namespace OpenSim.Region.Framework.Scenes
private void RestoreSavedScriptState(UUID oldID, UUID newID)
{
if(m_part.ParentGroup.m_savedScriptState.ContainsKey(oldID))
if (m_part.ParentGroup.m_savedScriptState.ContainsKey(oldID))
{
string fpath = Path.Combine("ScriptEngines/"+m_part.ParentGroup.Scene.RegionInfo.RegionID.ToString(),
newID.ToString()+".state");