aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/Avatar/Attachments
diff options
context:
space:
mode:
authorMelanie2013-03-29 01:52:29 +0000
committerMelanie2013-03-29 01:52:29 +0000
commit6954024fb2b53cb25e717cb7c3abb8b483b78b54 (patch)
tree2a103af4149e4a15d767fe552479c96a1c26d3bf /OpenSim/Region/CoreModules/Avatar/Attachments
parentMerge commit '3b377f16b29a6395d73af1cc987cb9abf9935376' into careminster (diff)
parentIf the viewer has already rezzed any attachments itself, then ignore the simu... (diff)
downloadopensim-SC_OLD-6954024fb2b53cb25e717cb7c3abb8b483b78b54.zip
opensim-SC_OLD-6954024fb2b53cb25e717cb7c3abb8b483b78b54.tar.gz
opensim-SC_OLD-6954024fb2b53cb25e717cb7c3abb8b483b78b54.tar.bz2
opensim-SC_OLD-6954024fb2b53cb25e717cb7c3abb8b483b78b54.tar.xz
Merge commit '4ad9b275302ee109937512963eab095ff542a0c7' into careminster
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar/Attachments')
-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 6eeef45..2556845 100644
--- a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
@@ -153,10 +153,6 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
153 } 153 }
154 } 154 }
155 155
156 /// <summary>
157 /// RezAttachments. This should only be called upon login on the first region.
158 /// Attachment rezzings on crossings and TPs are done in a different way.
159 /// </summary>
160 public void RezAttachments(IScenePresence sp) 156 public void RezAttachments(IScenePresence sp)
161 { 157 {
162 if (!Enabled) 158 if (!Enabled)
@@ -165,9 +161,19 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
165 if (null == sp.Appearance) 161 if (null == sp.Appearance)
166 { 162 {
167 m_log.WarnFormat("[ATTACHMENTS MODULE]: Appearance has not been initialized for agent {0}", sp.UUID); 163 m_log.WarnFormat("[ATTACHMENTS MODULE]: Appearance has not been initialized for agent {0}", sp.UUID);
164
168 return; 165 return;
169 } 166 }
170 167
168 if (sp.GetAttachments().Count > 0)
169 {
170// m_log.DebugFormat(
171// "[ATTACHMENTS MODULE]: Not doing simulator-side attachment rez for {0} in {1} as their viewer has already rezzed attachments",
172// m_scene.Name, sp.Name);
173
174 return;
175 }
176
171// m_log.DebugFormat("[ATTACHMENTS MODULE]: Rezzing any attachments for {0} from simulator-side", sp.Name); 177// m_log.DebugFormat("[ATTACHMENTS MODULE]: Rezzing any attachments for {0} from simulator-side", sp.Name);
172 178
173 XmlDocument doc = new XmlDocument(); 179 XmlDocument doc = new XmlDocument();