add to inventory
parent
9f0d7c3623
commit
c413e4f6ff
|
@ -137,7 +137,7 @@ namespace OpenSim.Modules.Appearance2Avatar
|
||||||
{
|
{
|
||||||
InventoryItemBase _item = new InventoryItemBase();
|
InventoryItemBase _item = new InventoryItemBase();
|
||||||
_item.AssetID = attachment.AssetID;
|
_item.AssetID = attachment.AssetID;
|
||||||
_item.AssetType = (int)AssetType.Object;
|
_item.AssetType = (int)AssetType.Link;
|
||||||
_item.Name = "Unknown Attachment";
|
_item.Name = "Unknown Attachment";
|
||||||
_item.Owner = sp.UUID;
|
_item.Owner = sp.UUID;
|
||||||
_item.Folder = _outfitFolder.ID;
|
_item.Folder = _outfitFolder.ID;
|
||||||
|
@ -150,6 +150,7 @@ namespace OpenSim.Modules.Appearance2Avatar
|
||||||
|
|
||||||
//Send Update
|
//Send Update
|
||||||
m_log.Info("[" + Name + "] Info: Send update to all clients");
|
m_log.Info("[" + Name + "] Info: Send update to all clients");
|
||||||
|
m_scene.AttachmentsModule.RezAttachments(sp);
|
||||||
foreach (ScenePresence presens in m_scene.GetScenePresences())
|
foreach (ScenePresence presens in m_scene.GetScenePresences())
|
||||||
m_scene.AvatarFactory.SendAppearance(presens.UUID);
|
m_scene.AvatarFactory.SendAppearance(presens.UUID);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue