aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
index eca9c3b..83beff4 100644
--- a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
@@ -468,6 +468,14 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
468 /// <param name="grp"></param> 468 /// <param name="grp"></param>
469 private void UpdateKnownItem(IScenePresence sp, SceneObjectGroup grp) 469 private void UpdateKnownItem(IScenePresence sp, SceneObjectGroup grp)
470 { 470 {
471 // Saving attachments for NPCs messes them up for the real owner!
472 INPCModule module = m_scene.RequestModuleInterface<INPCModule>();
473 if (module != null)
474 {
475 if (module.IsNPC(sp.UUID, m_scene))
476 return;
477 }
478
471 if (grp.HasGroupChanged || grp.ContainsScripts()) 479 if (grp.HasGroupChanged || grp.ContainsScripts())
472 { 480 {
473 m_log.DebugFormat( 481 m_log.DebugFormat(