aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.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/CoreModules/Avatar/Attachments/AttachmentsModule.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/CoreModules/Avatar/Attachments/AttachmentsModule.cs')
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs14
1 files changed, 10 insertions, 4 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
index a46834c..55c5422 100644
--- a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
@@ -182,10 +182,6 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
182 } 182 }
183 } 183 }
184 184
185 /// <summary>
186 /// RezAttachments. This should only be called upon login on the first region.
187 /// Attachment rezzings on crossings and TPs are done in a different way.
188 /// </summary>
189 public void RezAttachments(IScenePresence sp) 185 public void RezAttachments(IScenePresence sp)
190 { 186 {
191 if (!Enabled) 187 if (!Enabled)
@@ -194,9 +190,19 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
194 if (null == sp.Appearance) 190 if (null == sp.Appearance)
195 { 191 {
196 m_log.WarnFormat("[ATTACHMENTS MODULE]: Appearance has not been initialized for agent {0}", sp.UUID); 192 m_log.WarnFormat("[ATTACHMENTS MODULE]: Appearance has not been initialized for agent {0}", sp.UUID);
193
197 return; 194 return;
198 } 195 }
199 196
197 if (sp.GetAttachments().Count > 0)
198 {
199// m_log.DebugFormat(
200// "[ATTACHMENTS MODULE]: Not doing simulator-side attachment rez for {0} in {1} as their viewer has already rezzed attachments",
201// m_scene.Name, sp.Name);
202
203 return;
204 }
205
200// m_log.DebugFormat("[ATTACHMENTS MODULE]: Rezzing any attachments for {0} from simulator-side", sp.Name); 206// m_log.DebugFormat("[ATTACHMENTS MODULE]: Rezzing any attachments for {0} from simulator-side", sp.Name);
201 207
202 List<AvatarAttachment> attachments = sp.Appearance.GetAttachments(); 208 List<AvatarAttachment> attachments = sp.Appearance.GetAttachments();