Add some safeguards: DOn't send someone else's HUDs, don't send deleted prims
Removed some unneccessarily wordy core commentsavinationmerge
parent
96446adfa4
commit
4b979362e9
|
@ -3604,21 +3604,16 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
if (m_killRecord.Contains(part.ParentGroup.RootPart.LocalId))
|
if (m_killRecord.Contains(part.ParentGroup.RootPart.LocalId))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// Please do not remove this unless you can demonstrate on the OpenSim mailing list that a client
|
|
||||||
// will never receive an update after a prim kill. Even then, keeping the kill record may be a good
|
|
||||||
// safety measure.
|
|
||||||
//
|
|
||||||
// If a Linden Lab 1.23.5 client (and possibly later and earlier) receives an object update
|
|
||||||
// after a kill, it will keep displaying the deleted object until relog. OpenSim currently performs
|
|
||||||
// updates and kills on different threads with different scheduling strategies, hence this protection.
|
|
||||||
//
|
|
||||||
// This doesn't appear to apply to child prims - a client will happily ignore these updates
|
|
||||||
// after the root prim has been deleted.
|
|
||||||
if (m_killRecord.Contains(part.LocalId))
|
if (m_killRecord.Contains(part.LocalId))
|
||||||
{
|
continue;
|
||||||
// m_log.WarnFormat(
|
|
||||||
// "[CLIENT]: Preventing update for prim with local id {0} after client for user {1} told it was deleted",
|
if (part.ParentGroup.IsDeleted)
|
||||||
// part.LocalId, Name);
|
continue;
|
||||||
|
|
||||||
|
if (part.ParentGroup.IsAttachment)
|
||||||
|
{ // Someone else's HUD, why are we getting these?
|
||||||
|
if (part.ParentGroup.OwnerID != AgentId &&
|
||||||
|
part.ParentGroup.RootPart.Shape.State >= 30)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue