aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/ScenePresence.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2013-03-28 22:51:59 +0000
committerJustin Clark-Casey (justincc)2013-03-28 22:51:59 +0000
commit4ad9b275302ee109937512963eab095ff542a0c7 (patch)
treea05aa20cb64a048fd79001386612a31226f36153 /OpenSim/Region/Framework/Scenes/ScenePresence.cs
parentFix regression tests by making a new NPC always trigger simulator side attach... (diff)
downloadopensim-SC_OLD-4ad9b275302ee109937512963eab095ff542a0c7.zip
opensim-SC_OLD-4ad9b275302ee109937512963eab095ff542a0c7.tar.gz
opensim-SC_OLD-4ad9b275302ee109937512963eab095ff542a0c7.tar.bz2
opensim-SC_OLD-4ad9b275302ee109937512963eab095ff542a0c7.tar.xz
If the viewer has already rezzed any attachments itself, then ignore the simulator-side rez attachments call.
This is a further effort to reduce v3 viewer race conditions where this call may clash with the viewer signalling attachment wearing from its current outfit folder.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs12
1 files changed, 5 insertions, 7 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index 3a1e758..fcb2f6d 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -953,13 +953,11 @@ namespace OpenSim.Region.Framework.Scenes
953 // haven't started yet. 953 // haven't started yet.
954 if (PresenceType == PresenceType.Npc || (TeleportFlags & TeleportFlags.ViaLogin) != 0) 954 if (PresenceType == PresenceType.Npc || (TeleportFlags & TeleportFlags.ViaLogin) != 0)
955 { 955 {
956 // We leave a 5 second pause before attempting to rez attachments to avoid a clash with 956 // Viewers which have a current outfit folder will actually rez their own attachments. However,
957 // version 3 viewers that maybe doing their own attachment rezzing related to their current 957 // viewers without (e.g. v1 viewers) will not, so we still need to make this call.
958 // outfit folder on startup. If these operations do clash, then the symptoms are invisible 958 //
959 // attachments until one zooms in on the avatar. 959 // However, we leave a 5 second pause to try and avoid a clash with viewers that are rezzing
960 // 960 // attachments themselves. This should then mean that this call ends up doing nothing.
961 // We do not pause if we are launching on the same thread anyway in order to avoid pointlessly
962 // delaying any attachment related regression tests.
963 if (Scene.AttachmentsModule != null) 961 if (Scene.AttachmentsModule != null)
964 Util.FireAndForget( 962 Util.FireAndForget(
965 o => 963 o =>