Added to the stats command, now the prim uuid list also returns the UUID of any avatar sitting on it

pull/1/merge
Jak Daniels 2015-01-06 12:11:39 +00:00
parent 3bd0e30d10
commit 231fbeee63
1 changed files with 7 additions and 4 deletions

View File

@ -418,7 +418,8 @@ namespace Flocking
bool inWorld = IsInWorldCmd (ref args);
int i;
int s=m_model.Size;
UUID uid;
UUID primUuid;
UUID avatarSatOn;
if (inWorld)
{
m_log.InfoFormat("[{0}]: Sending bird statistics to region {1}.", m_name, m_scene.RegionInfo.RegionName);
@ -439,19 +440,21 @@ namespace Flocking
for (i = 0; i < s; i++)
{
uid = UUID.Zero;
primUuid = UUID.Zero;
avatarSatOn = UUID.Zero;
foreach (EntityBase e in m_scene.GetEntities())
{
if (e.Name == m_name + i)
{
SceneObjectGroup sog = (SceneObjectGroup)e;
SceneObjectPart rootPart = sog.RootPart;
uid = rootPart.UUID;
primUuid = rootPart.UUID;
avatarSatOn = rootPart.SitTargetAvatar;
break;
}
}
ShowResponse("birds-prim" + i + " = " + m_name + i + " : " + uid.ToString(), inWorld);
ShowResponse("birds-prim" + i + " = " + m_name + i + " : " + primUuid.ToString() + " : " + avatarSatOn.ToString(), inWorld);
}
}
}