Introduce SOP.UpdateSitters() to update sitting avatars' chat position if

needed
avinationmerge
Melanie Thielker 2010-06-13 22:21:05 +02:00
parent 5e4bee0f34
commit f59e272643
2 changed files with 17 additions and 0 deletions

View File

@ -2174,6 +2174,7 @@ namespace OpenSim.Region.Framework.Scenes
{
m_rootPart.UpdateFlag = 1;
lastPhysGroupPos = AbsolutePosition;
UpdateSitters();
}
if (UsePhysics && !GroupRotation.ApproxEquals(lastPhysGroupRot, 0.1f))
@ -3832,6 +3833,14 @@ namespace OpenSim.Region.Framework.Scenes
}
}
private void UpdateSitters()
{
foreach (SceneObjectPart part in Children.Values)
{
part.UpdateSitter();
}
}
public override string ToString()
{
return String.Format("{0} {1} ({2})", Name, UUID, AbsolutePosition);

View File

@ -4720,5 +4720,13 @@ namespace OpenSim.Region.Framework.Scenes
Inventory.UpdateInventoryItem(item);
}
}
public void UpdateSitter()
{
if (m_sitTargetAvatar != UUID.Zero)
return;
// Update sitting avatar chat position
}
}
}