Fix yet another cause of "Ghost attachments"
parent
f4f9a2cb45
commit
8886afd319
|
@ -271,8 +271,17 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
|
||||||
if (AttachmentPt != 0 && AttachmentPt != objatt.GetAttachmentPoint())
|
if (AttachmentPt != 0 && AttachmentPt != objatt.GetAttachmentPoint())
|
||||||
tainted = true;
|
tainted = true;
|
||||||
|
|
||||||
AttachObject(remoteClient, objatt, AttachmentPt, false);
|
// This will throw if the attachment fails
|
||||||
//objatt.ScheduleGroupForFullUpdate();
|
try
|
||||||
|
{
|
||||||
|
AttachObject(remoteClient, objatt, AttachmentPt, false);
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
// Make sure the object doesn't stick around and bail
|
||||||
|
m_scene.DeleteSceneObject(objatt, false);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
if (tainted)
|
if (tainted)
|
||||||
objatt.HasGroupChanged = true;
|
objatt.HasGroupChanged = true;
|
||||||
|
|
Loading…
Reference in New Issue