Print number of objects found with "show object name" and "show part name" simulator console commands
parent
03136df1a7
commit
046113c137
|
@ -215,12 +215,6 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
|
||||||
|
|
||||||
m_scene.ForEachSOG(searchAction);
|
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();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|
||||||
foreach (SceneObjectGroup so in sceneObjects)
|
foreach (SceneObjectGroup so in sceneObjects)
|
||||||
|
@ -229,6 +223,8 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
|
||||||
sb.Append("\n");
|
sb.Append("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sb.AppendFormat("{0} objects found in {1}\n", sceneObjects.Count, m_scene.Name);
|
||||||
|
|
||||||
m_console.OutputFormat(sb.ToString());
|
m_console.OutputFormat(sb.ToString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -298,12 +294,6 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
|
||||||
|
|
||||||
m_scene.ForEachSOG(searchAction);
|
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();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|
||||||
foreach (SceneObjectPart part in parts)
|
foreach (SceneObjectPart part in parts)
|
||||||
|
@ -312,6 +302,8 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
|
||||||
sb.Append("\n");
|
sb.Append("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sb.AppendFormat("{0} parts found in {1}\n", parts.Count, m_scene.Name);
|
||||||
|
|
||||||
m_console.OutputFormat(sb.ToString());
|
m_console.OutputFormat(sb.ToString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue