aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
index 7380b63..3d90fa6 100644
--- a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
@@ -775,6 +775,18 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
775 return; 775 return;
776 } 776 }
777 777
778 // If this didn't come from inventory, it also shouldn't go there
779 // on detach. It's likely a temp attachment.
780 if (so.FromItemID != UUID.Zero)
781 {
782 sp.RemoveAttachment(so);
783 m_scene.DeleteSceneObject(so, false, false);
784 so.RemoveScriptInstances(true);
785 so.Clear();
786
787 return;
788 }
789
778 if (DebugLevel > 0) 790 if (DebugLevel > 0)
779 m_log.DebugFormat( 791 m_log.DebugFormat(
780 "[ATTACHMENTS MODULE]: Detaching object {0} {1} (FromItemID {2}) for {3} in {4}", 792 "[ATTACHMENTS MODULE]: Detaching object {0} {1} (FromItemID {2}) for {3} in {4}",