diff --git a/src/Appearance2Avatar.cs b/src/Appearance2Avatar.cs index bc31458..2d36165 100644 --- a/src/Appearance2Avatar.cs +++ b/src/Appearance2Avatar.cs @@ -94,16 +94,15 @@ namespace OpenSim.Modules.Appearance2Avatar if(noteCardContend != null) { + sp.ClearAttachments(); + m_log.Info(noteCardContend); m_log.Info("[" + Name + "] Info: Deserialize notecard."); OSDMap appearanceOsd = (OSDMap)OSDParser.DeserializeLLSDXml(noteCardContend); - AvatarAppearance appearance = new AvatarAppearance(); - appearance.Unpack(appearanceOsd); + sp.Appearance.Unpack(appearanceOsd); + - m_log.Info("[" + Name + "] Info: Overwrite appearance"); - sp.Appearance = appearance; - - m_log.Info("[" + Name + "] Info: Send update to clients"); + m_log.Info("[" + Name + "] Info: Send update to all clients"); sp.SendAvatarDataToAllAgents(); sp.SendAppearanceToAgent(sp); sp.SendAppearanceToAllOtherAgents();