sop SendFullUpdate() goes by presence if it is a attachment
parent
0295e6822d
commit
1aa335078a
|
@ -3238,6 +3238,18 @@ 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);
|
||||
|
|
|
@ -1891,7 +1891,7 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
foreach (SceneObjectGroup sog in m_attachments)
|
||||
{
|
||||
SendFullUpdateToClient(ControllingClient);
|
||||
sog.SendFullUpdateToClient(ControllingClient);
|
||||
SendAttachmentFullUpdateToAgentNF(sog, this);
|
||||
|
||||
if (!sog.HasPrivateAttachmentPoint)
|
||||
{
|
||||
|
@ -1905,7 +1905,7 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
continue;
|
||||
|
||||
SendFullUpdateToClient(p.ControllingClient); // resend our data by updates path
|
||||
sog.SendFullUpdateToClient(p.ControllingClient);
|
||||
SendAttachmentFullUpdateToAgentNF(sog, p);
|
||||
};
|
||||
}
|
||||
sog.RootPart.ParentGroup.CreateScriptInstances(0, false, m_scene.DefaultScriptEngine, GetStateSource());
|
||||
|
@ -4745,9 +4745,11 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
{
|
||||
if (p != this && sog.HasPrivateAttachmentPoint)
|
||||
return;
|
||||
|
||||
if (ParcelHideThisAvatar && currentParcelUUID != p.currentParcelUUID && p.GodLevel < 200)
|
||||
return;
|
||||
sog.SendFullUpdateToClient(p.ControllingClient);
|
||||
|
||||
SendAttachmentFullUpdateToAgentNF(sog, p);
|
||||
SendFullUpdateToClient(p.ControllingClient); // resend our data by updates path
|
||||
});
|
||||
}
|
||||
|
@ -4762,15 +4764,31 @@ namespace OpenSim.Region.Framework.Scenes
|
|||
{
|
||||
foreach (SceneObjectGroup sog in m_attachments)
|
||||
{
|
||||
if (p == this || !sog.HasPrivateAttachmentPoint)
|
||||
{
|
||||
sog.SendFullUpdateToClient(p.ControllingClient);
|
||||
}
|
||||
SendAttachmentFullUpdateToAgentNF(sog, p);
|
||||
}
|
||||
SendFullUpdateToClient(p.ControllingClient); // resend our data by updates path
|
||||
}
|
||||
}
|
||||
|
||||
public void SendAttachmentFullUpdateToAgentNF(SceneObjectGroup sog, ScenePresence p)
|
||||
{
|
||||
if (p != this && sog.HasPrivateAttachmentPoint)
|
||||
return;
|
||||
|
||||
SceneObjectPart[] parts = sog.Parts;
|
||||
SceneObjectPart rootpart = sog.RootPart;
|
||||
|
||||
p.ControllingClient.SendEntityUpdate(rootpart, PrimUpdateFlags.FullUpdate);
|
||||
|
||||
for (int i = 0; i < parts.Length; i++)
|
||||
{
|
||||
SceneObjectPart part = parts[i];
|
||||
if (part == rootpart)
|
||||
continue;
|
||||
p.ControllingClient.SendEntityUpdate(part, PrimUpdateFlags.FullUpdate);
|
||||
}
|
||||
}
|
||||
|
||||
public void SendAttachmentScheduleUpdate(SceneObjectGroup sog)
|
||||
{
|
||||
if (IsChildAgent || IsInTransit)
|
||||
|
|
Loading…
Reference in New Issue