From 2c75be7f6e6380264729e15255d59ad4dbe638a0 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Wed, 27 Apr 2016 00:35:30 +0200 Subject: From information given my Mandarinka Tasty, add firing the detach event even for temp attachments --- OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs index f4e1eae..0cc630f 100644 --- a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs @@ -779,6 +779,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments // on detach. It's likely a temp attachment. if (so.FromItemID == UUID.Zero) { + // Retirn value is ignored + PrepareScriptInstanceForSave(so, true); + lock (sp.AttachmentsSyncLock) { bool changed = sp.Appearance.DetachAttachment(so.FromItemID); -- cgit v1.1