aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs')
-rw-r--r--OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs6
1 files changed, 1 insertions, 5 deletions
diff --git a/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs b/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs
index e58dca2..2fdeeab 100644
--- a/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs
+++ b/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs
@@ -143,11 +143,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC
143 if (!m_avatars.ContainsKey(agentId)) 143 if (!m_avatars.ContainsKey(agentId))
144 return false; 144 return false;
145 145
146 // FIXME: An extremely bad bit of code that reaches directly into the attachments list and manipulates it 146 scene.AttachmentsModule.DeleteAttachmentsFromScene(sp, false);
147 foreach (SceneObjectGroup att in sp.GetAttachments())
148 scene.DeleteSceneObject(att, false);
149
150 sp.ClearAttachments();
151 147
152 AvatarAppearance npcAppearance = new AvatarAppearance(appearance, true); 148 AvatarAppearance npcAppearance = new AvatarAppearance(appearance, true);
153 sp.Appearance = npcAppearance; 149 sp.Appearance = npcAppearance;