diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 89eca32..c9c0662 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -2831,8 +2831,22 @@ namespace OpenSim.Region.Framework.Scenes | |||
2831 | // XXX: This is convoluted. | 2831 | // XXX: This is convoluted. |
2832 | sp.IsChildAgent = false; | 2832 | sp.IsChildAgent = false; |
2833 | 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. | ||
2834 | if (AttachmentsModule != null) | 2841 | if (AttachmentsModule != null) |
2835 | Util.FireAndForget(o => { Thread.Sleep(5000); AttachmentsModule.RezAttachments(sp); }); | 2842 | Util.FireAndForget( |
2843 | o => | ||
2844 | { | ||
2845 | if (Util.FireAndForgetMethod != FireAndForgetMethod.None) | ||
2846 | Thread.Sleep(5000); | ||
2847 | |||
2848 | AttachmentsModule.RezAttachments(sp); | ||
2849 | }); | ||
2836 | } | 2850 | } |
2837 | } | 2851 | } |
2838 | else | 2852 | else |