diff options
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs index c96de3a..90092ce 100644 --- a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs | |||
@@ -316,6 +316,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments | |||
316 | objatt.Name, objatt.UUID, sp.Name, e.Message, e.StackTrace); | 316 | objatt.Name, objatt.UUID, sp.Name, e.Message, e.StackTrace); |
317 | 317 | ||
318 | // Make sure the object doesn't stick around and bail | 318 | // Make sure the object doesn't stick around and bail |
319 | sp.RemoveAttachment(objatt); | ||
319 | m_scene.DeleteSceneObject(objatt, false); | 320 | m_scene.DeleteSceneObject(objatt, false); |
320 | return null; | 321 | return null; |
321 | } | 322 | } |
@@ -433,7 +434,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments | |||
433 | if (changed && m_scene.AvatarFactory != null) | 434 | if (changed && m_scene.AvatarFactory != null) |
434 | m_scene.AvatarFactory.QueueAppearanceSave(remoteClient.AgentId); | 435 | m_scene.AvatarFactory.QueueAppearanceSave(remoteClient.AgentId); |
435 | 436 | ||
436 | DetachSingleAttachmentToInv(itemID, presence); | 437 | DetachSingleAttachmentToInv(itemID, presence); |
437 | } | 438 | } |
438 | } | 439 | } |
439 | 440 | ||