aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Scene.cs
diff options
context:
space:
mode:
authorMelanie2013-03-29 01:50:34 +0000
committerMelanie2013-03-29 01:50:34 +0000
commit120903efb66f30ba5d009ceed7203a5589e2ff80 (patch)
treeff3a3e697464cfc96d95df2a5c822ca3ee30529b /OpenSim/Region/Framework/Scenes/Scene.cs
parentMerge commit '6a9630d2bdc27ed702936f4c44e6978f728a9ef0' into careminster (diff)
parentMove the simulator-side RezAttachments call on login to SP.MakeRootAgent with... (diff)
downloadopensim-SC-120903efb66f30ba5d009ceed7203a5589e2ff80.zip
opensim-SC-120903efb66f30ba5d009ceed7203a5589e2ff80.tar.gz
opensim-SC-120903efb66f30ba5d009ceed7203a5589e2ff80.tar.bz2
opensim-SC-120903efb66f30ba5d009ceed7203a5589e2ff80.tar.xz
Merge commit 'c2093ccce16cd5210c8e0759f23b5b4bd205b7af' into careminster
Conflicts: OpenSim/Region/Framework/Scenes/Scene.cs OpenSim/Region/Framework/Scenes/ScenePresence.cs
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs29
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 {