mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 20:55:43 +08:00
Print number of objects found with "show object name" and "show part name" simulator console commands
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user