mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 11:57:03 +08:00
From information given my Mandarinka Tasty, add firing the detach event even for temp attachments
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user