aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Scene.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs28
1 files changed, 0 insertions, 28 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index 45cbdd5..0ac4027 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -2820,34 +2820,6 @@ namespace OpenSim.Region.Framework.Scenes
2820 m_eventManager.TriggerOnNewPresence(sp); 2820 m_eventManager.TriggerOnNewPresence(sp);
2821 2821
2822 sp.TeleportFlags = (TPFlags)aCircuit.teleportFlags; 2822 sp.TeleportFlags = (TPFlags)aCircuit.teleportFlags;
2823
2824 // The first agent upon login is a root agent by design.
2825 // For this agent we will have to rez the attachments.
2826 // All other AddNewClient calls find aCircuit.child to be true.
2827 if (aCircuit.child == false)
2828 {
2829 // We have to set SP to be a root agent here so that SP.MakeRootAgent() will later not try to
2830 // start the scripts again (since this is done in RezAttachments()).
2831 // XXX: This is convoluted.
2832 sp.IsChildAgent = false;
2833
2834 // We leave a 5 second pause before attempting to rez attachments to avoid a clash with
2835 // version 3 viewers that maybe doing their own attachment rezzing related to their current
2836 // outfit folder on startup. If these operations do clash, then the symptoms are invisible
2837 // attachments until one zooms in on the avatar.
2838 //
2839 // We do not pause if we are launching on the same thread anyway in order to avoid pointlessly
2840 // delaying any attachment related regression tests.
2841 if (AttachmentsModule != null)
2842 Util.FireAndForget(
2843 o =>
2844 {
2845 if (Util.FireAndForgetMethod != FireAndForgetMethod.None)
2846 Thread.Sleep(5000);
2847
2848 AttachmentsModule.RezAttachments(sp);
2849 });
2850 }
2851 } 2823 }
2852 else 2824 else
2853 { 2825 {