detach over the attachment module
parent
84bbccae70
commit
a2d3869e0f
|
@ -97,7 +97,7 @@ namespace OpenSim.Modules.Appearance2Avatar
|
||||||
//Remove all attachments
|
//Remove all attachments
|
||||||
List<SceneObjectGroup> _allAttachments = sp.GetAttachments();
|
List<SceneObjectGroup> _allAttachments = sp.GetAttachments();
|
||||||
foreach (SceneObjectGroup _attachment in _allAttachments)
|
foreach (SceneObjectGroup _attachment in _allAttachments)
|
||||||
sp.RemoveAttachment(_attachment);
|
m_scene.AttachmentsModule.DetachSingleAttachmentToInv(sp, _attachment);
|
||||||
|
|
||||||
//Load Appearance
|
//Load Appearance
|
||||||
m_log.Info(noteCardContend);
|
m_log.Info(noteCardContend);
|
||||||
|
@ -105,15 +105,11 @@ namespace OpenSim.Modules.Appearance2Avatar
|
||||||
OSDMap appearanceOsd = (OSDMap)OSDParser.DeserializeLLSDXml(noteCardContend);
|
OSDMap appearanceOsd = (OSDMap)OSDParser.DeserializeLLSDXml(noteCardContend);
|
||||||
sp.Appearance.Unpack(appearanceOsd);
|
sp.Appearance.Unpack(appearanceOsd);
|
||||||
|
|
||||||
|
//Send Update
|
||||||
m_log.Info("[" + Name + "] Info: Send update to all clients");
|
m_log.Info("[" + Name + "] Info: Send update to all clients");
|
||||||
List<SceneObjectGroup> _allNewAttachments = sp.GetAttachments();
|
foreach (ScenePresence presens in m_scene.GetScenePresences())
|
||||||
foreach (SceneObjectGroup _attachment in _allAttachments)
|
presens.ControllingClient.SendAppearance(presens.UUID, sp.Appearance.VisualParams, sp.Appearance.Texture.GetBakesBytes(), sp.Appearance.AvatarPreferencesHoverZ);
|
||||||
sp.SendAttachmentUpdate(_attachment, PrimUpdateFlags.FullUpdate);
|
|
||||||
|
|
||||||
sp.SendInitialAvatarDataToAgent(sp);
|
|
||||||
sp.SendAvatarDataToAllAgents();
|
|
||||||
sp.SendAppearanceToAgent(sp);
|
|
||||||
sp.SendAppearanceToAllOtherAgents();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue