diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index fd20c60..3835047 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -2978,35 +2978,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
2978 | m_eventManager.TriggerOnNewPresence(sp); | 2978 | m_eventManager.TriggerOnNewPresence(sp); |
2979 | 2979 | ||
2980 | sp.TeleportFlags = (TPFlags)aCircuit.teleportFlags; | 2980 | sp.TeleportFlags = (TPFlags)aCircuit.teleportFlags; |
2981 | |||
2982 | // The first agent upon login is a root agent by design. | ||
2983 | // For this agent we will have to rez the attachments. | ||
2984 | // All other AddNewClient calls find aCircuit.child to be true. | ||
2985 | if (aCircuit.child == false) | ||
2986 | { | ||
2987 | // We have to set SP to be a root agent here so that SP.MakeRootAgent() will later not try to | ||
2988 | // start the scripts again (since this is done in RezAttachments()). | ||
2989 | // XXX: This is convoluted. | ||
2990 | sp.IsChildAgent = false; | ||
2991 | sp.IsLoggingIn = true; | ||
2992 | |||
2993 | // We leave a 5 second pause before attempting to rez attachments to avoid a clash with | ||
2994 | // version 3 viewers that maybe doing their own attachment rezzing related to their current | ||
2995 | // outfit folder on startup. If these operations do clash, then the symptoms are invisible | ||
2996 | // attachments until one zooms in on the avatar. | ||
2997 | // | ||
2998 | // We do not pause if we are launching on the same thread anyway in order to avoid pointlessly | ||
2999 | // delaying any attachment related regression tests. | ||
3000 | if (AttachmentsModule != null) | ||
3001 | Util.FireAndForget( | ||
3002 | o => | ||
3003 | { | ||
3004 | if (Util.FireAndForgetMethod != FireAndForgetMethod.None) | ||
3005 | Thread.Sleep(5000); | ||
3006 | |||
3007 | AttachmentsModule.RezAttachments(sp); | ||
3008 | }); | ||
3009 | } | ||
3010 | } | 2981 | } |
3011 | else | 2982 | else |
3012 | { | 2983 | { |