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 f501828..ad9e91d 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -3461,17 +3461,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
3461 | { | 3461 | { |
3462 | if (AttachmentsModule != null) | 3462 | if (AttachmentsModule != null) |
3463 | { | 3463 | { |
3464 | // Don't save attachments for HG visitors, it | 3464 | AttachmentsModule.DeRezAttachments(avatar); |
3465 | // messes up their inventory. When a HG visitor logs | ||
3466 | // out on a foreign grid, their attachments will be | ||
3467 | // reloaded in the state they were in when they left | ||
3468 | // the home grid. This is best anyway as the visited | ||
3469 | // grid may use an incompatible script engine. | ||
3470 | bool saveChanged | ||
3471 | = avatar.PresenceType != PresenceType.Npc | ||
3472 | && (UserManagementModule == null || UserManagementModule.IsLocalGridUser(avatar.UUID)); | ||
3473 | |||
3474 | AttachmentsModule.DeRezAttachments(avatar, saveChanged, false); | ||
3475 | } | 3465 | } |
3476 | 3466 | ||
3477 | ForEachClient( | 3467 | ForEachClient( |