aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMelanie Thielker2010-09-06 21:59:52 +0200
committerMelanie Thielker2010-09-06 21:59:52 +0200
commit8886afd31961e1a838cb15df863ff9155885e0c6 (patch)
tree272bb125b69219c538dc1e4f3080fb2d2ff89bb8
parentDon't turn off the sale settings on child prims when linking, and on copy (diff)
downloadopensim-SC_OLD-8886afd31961e1a838cb15df863ff9155885e0c6.zip
opensim-SC_OLD-8886afd31961e1a838cb15df863ff9155885e0c6.tar.gz
opensim-SC_OLD-8886afd31961e1a838cb15df863ff9155885e0c6.tar.bz2
opensim-SC_OLD-8886afd31961e1a838cb15df863ff9155885e0c6.tar.xz
Fix yet another cause of "Ghost attachments"
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs15
1 files changed, 12 insertions, 3 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
index bd9e621..100b55c 100644
--- a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
@@ -271,8 +271,17 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
271 if (AttachmentPt != 0 && AttachmentPt != objatt.GetAttachmentPoint()) 271 if (AttachmentPt != 0 && AttachmentPt != objatt.GetAttachmentPoint())
272 tainted = true; 272 tainted = true;
273 273
274 AttachObject(remoteClient, objatt, AttachmentPt, false); 274 // This will throw if the attachment fails
275 //objatt.ScheduleGroupForFullUpdate(); 275 try
276 {
277 AttachObject(remoteClient, objatt, AttachmentPt, false);
278 }
279 catch
280 {
281 // Make sure the object doesn't stick around and bail
282 m_scene.DeleteSceneObject(objatt, false);
283 return null;
284 }
276 285
277 if (tainted) 286 if (tainted)
278 objatt.HasGroupChanged = true; 287 objatt.HasGroupChanged = true;
@@ -616,4 +625,4 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
616 so.HasGroupChanged = false; 625 so.HasGroupChanged = false;
617 } 626 }
618 } 627 }
619} \ No newline at end of file 628}