diff options
Merge commit '4ad9b275302ee109937512963eab095ff542a0c7' into careminster
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs | 14 |
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(); |