IAvatarFactory.UpdateDatabase gets the assetID and not the object's inworld UUID.

arthursv
Diva Canto 2009-08-16 19:35:14 -07:00
parent 550d0e434f
commit 50056871b8
2 changed files with 9 additions and 1 deletions

View File

@ -364,6 +364,12 @@ namespace OpenSim.Framework
ID = id;
}
public InventoryItemBase(UUID id, UUID owner)
{
ID = id;
Owner = owner;
}
public object Clone()
{
return MemberwiseClone();

View File

@ -2309,7 +2309,9 @@ namespace OpenSim.Region.Framework.Scenes
ScenePresence presence;
if (TryGetAvatar(remoteClient.AgentId, out presence))
{
presence.Appearance.SetAttachment((int)AttachmentPt, itemID, att.UUID);
InventoryItemBase item = InventoryService.GetItem(new InventoryItemBase(itemID, remoteClient.AgentId));
presence.Appearance.SetAttachment((int)AttachmentPt, itemID, item.AssetID /*att.UUID*/);
IAvatarFactory ava = RequestModuleInterface<IAvatarFactory>();
if (ava != null)
{