sop SendFullUpdate() goes by presence if it is a attachment

This commit is contained in:
UbitUmarov
2014-08-22 21:54:00 +01:00
parent 0295e6822d
commit 1aa335078a
2 changed files with 39 additions and 8 deletions

View File

@@ -3237,7 +3237,19 @@ namespace OpenSim.Region.Framework.Scenes
// m_log.DebugFormat(
// "[SOG]: Sendinging part full update to {0} for {1} {2}", remoteClient.Name, part.Name, part.LocalId);
if (ParentGroup.IsAttachment)
{
ScenePresence sp = ParentGroup.Scene.GetScenePresence(ParentGroup.AttachedAvatar);
if (sp != null)
{
sp.SendAttachmentUpdate(this, UpdateRequired.FULL);
}
}
/* this does nothing
SendFullUpdateToClient(remoteClient, Position) ignores position parameter
if (IsRoot)
{
if (ParentGroup.IsAttachment)
@@ -3249,6 +3261,7 @@ namespace OpenSim.Region.Framework.Scenes
SendFullUpdateToClient(remoteClient, AbsolutePosition);
}
}
*/
else
{
SendFullUpdateToClient(remoteClient);