Introduce SOP.UpdateSitters() to update sitting avatars' chat position if
neededavinationmerge
parent
5e4bee0f34
commit
f59e272643
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue