Print number of objects found with "show object name" and "show part name" simulator console commands

0.7.4-extended
Justin Clark-Casey (justincc) 2012-10-05 01:46:28 +01:00
parent 5a686d40de
commit 601c7998eb
1 changed files with 4 additions and 12 deletions

View File

@ -215,12 +215,6 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
m_scene.ForEachSOG(searchAction);
if (sceneObjects.Count == 0)
{
m_console.OutputFormat("No objects with name {0} found in {1}", name, m_scene.RegionInfo.RegionName);
return;
}
StringBuilder sb = new StringBuilder();
foreach (SceneObjectGroup so in sceneObjects)
@ -229,6 +223,8 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
sb.Append("\n");
}
sb.AppendFormat("{0} objects found in {1}\n", sceneObjects.Count, m_scene.Name);
m_console.OutputFormat(sb.ToString());
}
@ -298,12 +294,6 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
m_scene.ForEachSOG(searchAction);
if (parts.Count == 0)
{
m_console.OutputFormat("No parts with name {0} found in {1}", name, m_scene.RegionInfo.RegionName);
return;
}
StringBuilder sb = new StringBuilder();
foreach (SceneObjectPart part in parts)
@ -312,6 +302,8 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
sb.Append("\n");
}
sb.AppendFormat("{0} parts found in {1}\n", parts.Count, m_scene.Name);
m_console.OutputFormat(sb.ToString());
}