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

This commit is contained in:
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

@@ -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)
{