aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-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 280fdc7..2142d02 100644
--- a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
@@ -462,6 +462,14 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
462 /// <param name="grp"></param> 462 /// <param name="grp"></param>
463 private void UpdateKnownItem(IScenePresence sp, SceneObjectGroup grp) 463 private void UpdateKnownItem(IScenePresence sp, SceneObjectGroup grp)
464 { 464 {
465 // Saving attachments for NPCs messes them up for the real owner!
466 INPCModule module = m_scene.RequestModuleInterface<INPCModule>();
467 if (module != null)
468 {
469 if (module.IsNPC(sp.UUID, m_scene))
470 return;
471 }
472
465 if (grp.HasGroupChanged || grp.ContainsScripts()) 473 if (grp.HasGroupChanged || grp.ContainsScripts())
466 { 474 {
467 m_log.DebugFormat( 475 m_log.DebugFormat(