public SendFullUpdateToClient ( IClientAPI remoteClient, Vector3 lPos, uint clientFlags ) : void | ||
remoteClient | IClientAPI | |
lPos | Vector3 | |
clientFlags | uint | |
return | void |
public void SendFullUpdateToClient(IClientAPI remoteClient, Vector3 lPos, uint clientFlags)
{
// Suppress full updates during attachment editing
//
if (ParentGroup.IsSelected && IsAttachment)
return;
if (ParentGroup.IsDeleted)
return;
clientFlags &= ~(uint) PrimFlags.CreateSelected;
if (remoteClient.AgentId == _ownerID)
{
if ((Flags & PrimFlags.CreateSelected) != 0)
{
clientFlags |= (uint) PrimFlags.CreateSelected;
Flags &= ~PrimFlags.CreateSelected;
}
}
//bool isattachment = IsAttachment;
//if (LocalId != ParentGroup.RootPart.LocalId)
//isattachment = ParentGroup.RootPart.IsAttachment;
remoteClient.SendPrimUpdate(this, PrimUpdateFlags.FullUpdate);
}
SceneObjectPart::SendFullUpdateToClient ( IClientAPI remoteClient, uint clientflags ) : void |
/// <summary> /// Send a full update to the client for the given part /// </summary> /// <param name="remoteClient"></param> /// <param name="part"></param> internal void SendPartFullUpdate(IClientAPI remoteClient, SceneObjectPart part, uint clientFlags) { if (m_rootPart.UUID == part.UUID) { if (IsAttachment) { part.SendFullUpdateToClient(remoteClient, m_rootPart.AttachedPos, clientFlags); } else { part.SendFullUpdateToClient(remoteClient, AbsolutePosition, clientFlags); } } else { part.SendFullUpdateToClient(remoteClient, clientFlags); } }