bug fix. Was not deleting attachments if on public parcel

avinationmerge
UbitUmarov 2014-08-27 01:09:11 +01:00
parent 620443f858
commit 07ee101a05
1 changed files with 6 additions and 2 deletions

View File

@ -5967,6 +5967,9 @@ namespace OpenSim.Region.Framework.Scenes
if (nearRegion) if (nearRegion)
{ {
if (Scene.AttachmentsModule != null)
Scene.AttachmentsModule.DeleteAttachmentsFromScene(this, true);
if (!ParcelHideThisAvatar || GodLevel >= 200) if (!ParcelHideThisAvatar || GodLevel >= 200)
return; return;
@ -5993,9 +5996,10 @@ namespace OpenSim.Region.Framework.Scenes
if (!p.IsChildAgent) if (!p.IsChildAgent)
p.SendKillTo(this); p.SendKillTo(this);
} }
if (Scene.AttachmentsModule != null)
Scene.AttachmentsModule.DeleteAttachmentsFromScene(this, true);
} }
if (Scene.AttachmentsModule != null)
Scene.AttachmentsModule.DeleteAttachmentsFromScene(this, true);
} }