diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 56c58b7..0bf2259 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -3467,17 +3467,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
3467 | { | 3467 | { |
3468 | if (AttachmentsModule != null) | 3468 | if (AttachmentsModule != null) |
3469 | { | 3469 | { |
3470 | // Don't save attachments for HG visitors, it | 3470 | AttachmentsModule.DeRezAttachments(avatar); |
3471 | // messes up their inventory. When a HG visitor logs | ||
3472 | // out on a foreign grid, their attachments will be | ||
3473 | // reloaded in the state they were in when they left | ||
3474 | // the home grid. This is best anyway as the visited | ||
3475 | // grid may use an incompatible script engine. | ||
3476 | bool saveChanged | ||
3477 | = avatar.PresenceType != PresenceType.Npc | ||
3478 | && (UserManagementModule == null || UserManagementModule.IsLocalGridUser(avatar.UUID)); | ||
3479 | |||
3480 | AttachmentsModule.DeRezAttachments(avatar, saveChanged, false); | ||
3481 | } | 3471 | } |
3482 | 3472 | ||
3483 | ForEachClient( | 3473 | ForEachClient( |